[Resolved] My app works fine in the Simulator, but doesn’t work on the device (Just black screen on device)

Hi,

My app working fine in Corona simulator but doesn’t work in Device or Xcode simulator.

My program just gives me a black screen

My Corona Terminal show me 2 errors when I build the app:

Using additional build settings from: /Users/guillem/Desktop/SECRET/build.settings

Created XCENT: /var/folders/2p/2xq2560s5bg_1txwpvmwvct00000gn/T/1391254236/entitlements.xcent

2014-02-01 08:30:46.818 defaults[73948:d07] 

Domain (/Users/guillem/Desktop/TEST/SECRET.app/Info) not found.

Defaults have not been changed.

2014-02-01 08:30:46.846 defaults[73949:d07] 

Domain (/Users/guillem/Desktop/TEST/SECRET.app/Info) not found.

Defaults have not been changed.

Copying /Users/guillem/Desktop/SECRET/4bells.mp3 to /Users/guillem/Desktop/TEST/SECRET.app/4bells.mp3

/Users/guillem/Desktop/SECRET/4bells.mp3 -> /Users/guillem/Desktop/TEST/SECRET.app/4bells.mp3

 

 

Thanks

What does your build.settings look like?

Did you look at the console log of the device you’re trying to run it on to see if there are errors reported there?

Rob

This link save my life

https://coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/

Thanks again Rob

:slight_smile:

The error wasn’t in build.settings. I find my error with Console from Xcode Organizer running the app in my device :

The easiest way to debug on Apple devices is to use the  Xcode Organizer. From the “Window” menu in Xcode, choose “Organizer.” It will bring up a screen that looks like this:

xcode02.png

Now, you must “tether” your device (connect it to the computer via its charging cable) and wait until it appears in the left column. When it does, select it. You may also need to click the button in the middle that says “Use device for development.” Once you’ve done this, click on the “Console” link (circled in red in the screenshot) and view your console messages there.

 

 

The error was in:

 

ads.init( “iads”, “com.mydomain.secret”, adListenerAD );

 

I use it when iAds not active in my app… (I think so…)

 

I delete this line and now runs fine!!!  :slight_smile:

 

Thanks a lot!!!

What does your build.settings look like?

Did you look at the console log of the device you’re trying to run it on to see if there are errors reported there?

Rob

This link save my life

https://coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/

Thanks again Rob

:slight_smile:

The error wasn’t in build.settings. I find my error with Console from Xcode Organizer running the app in my device :

The easiest way to debug on Apple devices is to use the  Xcode Organizer. From the “Window” menu in Xcode, choose “Organizer.” It will bring up a screen that looks like this:

xcode02.png

Now, you must “tether” your device (connect it to the computer via its charging cable) and wait until it appears in the left column. When it does, select it. You may also need to click the button in the middle that says “Use device for development.” Once you’ve done this, click on the “Console” link (circled in red in the screenshot) and view your console messages there.

 

 

The error was in:

 

ads.init( “iads”, “com.mydomain.secret”, adListenerAD );

 

I use it when iAds not active in my app… (I think so…)

 

I delete this line and now runs fine!!!  :slight_smile:

 

Thanks a lot!!!

Hi,

My app working fine in Corona simulator too,but when i build the app,encountered the same problem

I use /Applications/CoronaSDK/SampleCode/Interface/Storyboard to  build, also have the same error

Created XCENT: /var/folders/1x/4jf3wp9d5z1cmcqd0knlhy4h0000gn/T/1394026133/entitlements.xcent

2014-03-05 21:29:47.837 defaults[1009:d07] 

Domain (/Users/buding/Desktop/Storyboard.app/Info) not found.

Defaults have not been changed.

2014-03-05 21:29:47.903 defaults[1010:d07] 

Domain (/Users/buding/Desktop/Storyboard.app/Info) not found.

Defaults have not been changed.

Copying /Users/buding/Documents/work/project/Storyboard/bg.jpg to /Users/buding/Desktop/Storyboard.app/bg.jpg

Thank you.

Dunno if it helps but my black screen dissapeared when I’ve stoppped using subfolders.
placed all lua files and assets in one dir.

Hi,

My app working fine in Corona simulator too,but when i build the app,encountered the same problem

I use /Applications/CoronaSDK/SampleCode/Interface/Storyboard to  build, also have the same error

Created XCENT: /var/folders/1x/4jf3wp9d5z1cmcqd0knlhy4h0000gn/T/1394026133/entitlements.xcent

2014-03-05 21:29:47.837 defaults[1009:d07] 

Domain (/Users/buding/Desktop/Storyboard.app/Info) not found.

Defaults have not been changed.

2014-03-05 21:29:47.903 defaults[1010:d07] 

Domain (/Users/buding/Desktop/Storyboard.app/Info) not found.

Defaults have not been changed.

Copying /Users/buding/Documents/work/project/Storyboard/bg.jpg to /Users/buding/Desktop/Storyboard.app/bg.jpg

Thank you.

Dunno if it helps but my black screen dissapeared when I’ve stoppped using subfolders.
placed all lua files and assets in one dir.