App works in Corona simulator but goes to a black screen on device & simulator

@jleigh, we just released build 2189.  This is almost a hundred updates since the version you are using.  I would update to it and then see how things go.  Besides that, just make sure you don’t have a file name case sensitivity error.  I.e. make sure background_IPAD.png is exactly that, not background_IPAD.PNG or background_iPad.png.

yes, I am trying 2189 now (actually had 2159 on PC but only 2091 on Mac).

File name is ok, the background shows correctly after putting app in background and restarting.

ok, this is working for me now.

It all seems to be a mixup due to my apps using different features of Corona (some that work in 2091 and some that don’t).

I had been working an app for 6 months now without a problem but when I started a new project things fell apart.

They both work on simulator in 2091.

The app I had been working was only a web pop (does not use any native Corona graphics) and ran fine on 2091 on device but the new app is only Corona graphics and was failing on 2091.

So apparently 2091 can not be used to build for devices at all anymore if your app uses Corona features other than Web Popup.

Both apps work on simulator and device with latest build 2189.

[Edit] Simplified and updated code snippets below even farther, still same issue. Also test on iPhone 5s - same problem.

I’ve got this exact same issue. Stripped my app back trying to nail it down so that it does nothing now but display a background after startup. Running Corona 2013.2091on iPad 4 iOS 7.0.4

Runs perfectly on simulator. Installed on device I get my Default@2x~ipad.png splash screen shows correctly, then the screen goes black and I have the following console log with the CoreAnimation error the OP had. If I put the app in the background and go back to it m background screen shows up correctly as I would have expected at startup. So something is preventing it from rendering on startup. Any clues? Am I using something in my code that is deprecated?

This is the entire log tethered to the device:

Mar 16 12:49:54 Jeffreys-iPad kernel[0] \<Debug\>: launchd[1215] Container: /private/var/mobile/Applications/A0C38D99-03A0-4758-8E7B-E0E61C3CF453 (sandbox) Mar 16 12:49:55 Jeffreys-iPad Hominids[1215] \<Warning\>: loading Mar 16 12:49:55 Jeffreys-iPad backboardd[28] \<Warning\>: CoreAnimation: updates deferred for too long Mar 16 12:49:55 Jeffreys-iPad Hominids[1215] \<Warning\>: done &nbsp;

This is my settings file:

settings = { orientation = { default = "portrait", supported = { "portrait" }, }, iphone = { plist = { MinimumOSVersion="7.0", UILaunchImageFile = "Default", UIRequiredDeviceCapabilities= {}, UIStatusBarHidden=true, CFBundleIconFiles = { "icon", "icon-small-40", "icon-60", "icon-72", "icon-76", "icon-small-50", "icon-small", }, CFBundleIdentifier = "com.domain.app", CFBundleDisplayName = "App Name", UIApplicationExitsOnSuspend = false, }, } }

This is my config.lua:

application = {&nbsp; &nbsp; content =&nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; width = 768, &nbsp; &nbsp; &nbsp; &nbsp; height = 1024, &nbsp; &nbsp; &nbsp; &nbsp; scale = "letterbox", &nbsp; &nbsp; &nbsp; &nbsp; fps = 30, &nbsp; &nbsp; &nbsp; &nbsp; antialias = true, &nbsp; &nbsp; &nbsp; &nbsp; imageSuffix =&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ["@2x"] = 2, &nbsp; &nbsp; &nbsp; &nbsp; }, &nbsp; &nbsp; } } &nbsp;

And this is my entire main.lua:

print "loading" splashBG = display.newImageRect("background\_IPAD.png",768,1024) splashBG.anchorX = 0 splashBG.anchorY = 0 print "done"

@jleigh, we just released build 2189.  This is almost a hundred updates since the version you are using.  I would update to it and then see how things go.  Besides that, just make sure you don’t have a file name case sensitivity error.  I.e. make sure background_IPAD.png is exactly that, not background_IPAD.PNG or background_iPad.png.

yes, I am trying 2189 now (actually had 2159 on PC but only 2091 on Mac).

File name is ok, the background shows correctly after putting app in background and restarting.

ok, this is working for me now.

It all seems to be a mixup due to my apps using different features of Corona (some that work in 2091 and some that don’t).

I had been working an app for 6 months now without a problem but when I started a new project things fell apart.

They both work on simulator in 2091.

The app I had been working was only a web pop (does not use any native Corona graphics) and ran fine on 2091 on device but the new app is only Corona graphics and was failing on 2091.

So apparently 2091 can not be used to build for devices at all anymore if your app uses Corona features other than Web Popup.

Both apps work on simulator and device with latest build 2189.