Why do I get a Black Screen in my iPad App?

Hi everyone…

I just installed my app in my iPad, for my Beta testing, first time.

When I click on my Icon, it opens up the “default” launch screen (an image)

and it goes to a BLACK SCREEN

Totally black, nothing, it just doesn’t work


In the computer works fine!, perfect!


That happens to me about 6 months ago … I never knew what it was or how to fix it …

I had to re do my whole app, one screen at a time…

the home screen, make sure it works… on button…it works… one image…it works…like that

the whole app again, one screen at a time…

It was a lot of time


Is there a way to find out why I get this Black screen?

And how to fix it without having to re-make my entire app?

Please any help would be greatly appreciated


Thanks

A black screen means you have an error in your code that’s triggered by being on a real device.  You need to tether your device to your computer and view the console log.  Since this is an iPad, you will use Xcode and bring up the Devices screen, run your app and look at the messages you are getting.

Rob

Hi Rob – Thanks…

“you will use Xcode and bring up the Devices screen”

How do I do that, I am in Xcode but I don’t know how to bring up the Devices screen

Window->Devices   or SHIFT-CMD-2

Click on your device

The console log will be hidden and a little button that looks like below will need to be clicked on to show the log.

Okay… let’s see…

Window->Devices [I don’t see that]

SHIFT-CMD-2 [I open the Organizer]

In the Organizer I see (to the left)

LIBRARY

  Device Logs

  Screenshots

DEVICES

  My Mac

  Victor Developer

  iPhone

  TvCityiPad

Inside the Victor Developer ( that has a little green light )

  Provisionin Profiles

  Applications

  Console

  Devices Logs

  Screenshots

I went to the Console, and it had a lot of things

I clear everything

Now what?

1.- Do I have to Build in Corona and put my app in my iPad and run it?

2.- Or Run the iPad in my Computer?

I build the app and install it I got like 20 thousands lines… like this

Dec  4 08:51:18 Victor-Developer-iPad backboardd[29] <Error>: __hid_dispatch_pthread_root_queue_create_block_invoke: specific=0x17611570 pthread_self=0x453a000

Dec  4 08:51:18 Victor-Developer-iPad kernel[0] <Debug>: ALS: AppleARMBacklight::handleMessageGated - framebufferState -> 1

Dec  4 08:51:26 Victor-Developer-iPad ubd[1082] <Error>: unable to opendir(/var/mobile/Library/Logs/CrashReporter/DiagnosticLogs/Ubiquity); error 2; No such file or directory

Dec  4 08:51:26 Victor-Developer-iPad ubd[1082] <Error>: Couldn’t create symlink at /var/mobile/Library/Logs/CrashReporter/DiagnosticLogs/Ubiquity/ubiquity-digest.log (No such file or directory)

Dec  4 08:51:26 Victor-Developer-iPad ubd[1082] <Error>: Couldn’t open log file /var/mobile/Library/Logs/CrashReporter/DiagnosticLogs/Ubiquity/ubiquity-digest-2014-12-04-085126-0800.log (No such file or directory)

Dec  4 08:51:26 Victor-Developer-iPad ubd[1082] <Error>: [ERROR] [0.043s] main       ubd.c:3055 ubd_main() null personid

Dec  4 08:51:27 Victor-Developer-iPad SpringBoard[33] <Error>: libMobileGestalt MobileGestalt.c:835: ipad is static and will never generate a notification

Dec  4 08:52:13 Victor-Developer-iPad KindergardenFun-112914-3[1089] <Warning>: Runtime error

Dec  4 08:52:13 Victor-Developer-iPad KindergardenFun-112914-3[1089] <Warning>: Runtime error
    loop or previous error loading module ‘composer’
    stack traceback:
        [C]: in function ‘require’
        ?: in function <?:803>
        (tail call): ?
        /Users/victormbarba/Desktop/Kindergarden Fun - 112914/composer.lua:2: in main chunk
        [C]: in function ‘require’
        ?: in function <?:803>
        (tail call): ?
        /Users/victormbarba/Desktop/Kindergarden Fun - 112914/main.lua:3: in main chunk


Like that… Would that help you to help me find the answer?

perhaps you should look at main.lua line 3 and see what’s there?

Do you  have a file called composer.lua?  You should not have one because “composer” is an internal API. 

Rob

Thank you , Thank you THANK YOU!!! very much…

My brother is helping me to make apps

he is an a programmer in C + and Many other things

he wanted to learn how to make apps

this is the first one he is making with me

and he had a “composer.lua” inside the main folder

I took that away and test the app

and it works!!!

I hope that was the only problem, I will finish that app and test it again

but for now you made my DAY

Thank you Rob

A black screen means you have an error in your code that’s triggered by being on a real device.  You need to tether your device to your computer and view the console log.  Since this is an iPad, you will use Xcode and bring up the Devices screen, run your app and look at the messages you are getting.

Rob

Hi Rob – Thanks…

“you will use Xcode and bring up the Devices screen”

How do I do that, I am in Xcode but I don’t know how to bring up the Devices screen

Window->Devices   or SHIFT-CMD-2

Click on your device

The console log will be hidden and a little button that looks like below will need to be clicked on to show the log.

Okay… let’s see…

Window->Devices [I don’t see that]

SHIFT-CMD-2 [I open the Organizer]

In the Organizer I see (to the left)

LIBRARY

  Device Logs

  Screenshots

DEVICES

  My Mac

  Victor Developer

  iPhone

  TvCityiPad

Inside the Victor Developer ( that has a little green light )

  Provisionin Profiles

  Applications

  Console

  Devices Logs

  Screenshots

I went to the Console, and it had a lot of things

I clear everything

Now what?

1.- Do I have to Build in Corona and put my app in my iPad and run it?

2.- Or Run the iPad in my Computer?

I build the app and install it I got like 20 thousands lines… like this

Dec  4 08:51:18 Victor-Developer-iPad backboardd[29] <Error>: __hid_dispatch_pthread_root_queue_create_block_invoke: specific=0x17611570 pthread_self=0x453a000

Dec  4 08:51:18 Victor-Developer-iPad kernel[0] <Debug>: ALS: AppleARMBacklight::handleMessageGated - framebufferState -> 1

Dec  4 08:51:26 Victor-Developer-iPad ubd[1082] <Error>: unable to opendir(/var/mobile/Library/Logs/CrashReporter/DiagnosticLogs/Ubiquity); error 2; No such file or directory

Dec  4 08:51:26 Victor-Developer-iPad ubd[1082] <Error>: Couldn’t create symlink at /var/mobile/Library/Logs/CrashReporter/DiagnosticLogs/Ubiquity/ubiquity-digest.log (No such file or directory)

Dec  4 08:51:26 Victor-Developer-iPad ubd[1082] <Error>: Couldn’t open log file /var/mobile/Library/Logs/CrashReporter/DiagnosticLogs/Ubiquity/ubiquity-digest-2014-12-04-085126-0800.log (No such file or directory)

Dec  4 08:51:26 Victor-Developer-iPad ubd[1082] <Error>: [ERROR] [0.043s] main       ubd.c:3055 ubd_main() null personid

Dec  4 08:51:27 Victor-Developer-iPad SpringBoard[33] <Error>: libMobileGestalt MobileGestalt.c:835: ipad is static and will never generate a notification

Dec  4 08:52:13 Victor-Developer-iPad KindergardenFun-112914-3[1089] <Warning>: Runtime error

Dec  4 08:52:13 Victor-Developer-iPad KindergardenFun-112914-3[1089] <Warning>: Runtime error
    loop or previous error loading module ‘composer’
    stack traceback:
        [C]: in function ‘require’
        ?: in function <?:803>
        (tail call): ?
        /Users/victormbarba/Desktop/Kindergarden Fun - 112914/composer.lua:2: in main chunk
        [C]: in function ‘require’
        ?: in function <?:803>
        (tail call): ?
        /Users/victormbarba/Desktop/Kindergarden Fun - 112914/main.lua:3: in main chunk


Like that… Would that help you to help me find the answer?

perhaps you should look at main.lua line 3 and see what’s there?

Do you  have a file called composer.lua?  You should not have one because “composer” is an internal API. 

Rob

Thank you , Thank you THANK YOU!!! very much…

My brother is helping me to make apps

he is an a programmer in C + and Many other things

he wanted to learn how to make apps

this is the first one he is making with me

and he had a “composer.lua” inside the main folder

I took that away and test the app

and it works!!!

I hope that was the only problem, I will finish that app and test it again

but for now you made my DAY

Thank you Rob