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

Hi, a game I’m working on is not working on the iPhone or in the iPhone simulator (but works without issues in the Corona Simulator). When I attempt to run it, all I get is a black screen (after the loading screen). Nothing happens, no crashes, just a black screen. The same thing happens in the simulator.

Any ideas? [import]uid: 4702 topic_id: 5682 reply_id: 305682[/import]

I am having exactly this same issue. Anyone have any ideas? [import]uid: 25080 topic_id: 5682 reply_id: 20152[/import]

what image format are you using?

png -32 bit jpeg?

C. [import]uid: 24 topic_id: 5682 reply_id: 20180[/import]

All my graphic images are PNG.

BTW I can create an Android APK and install it on my Samsung Android device and it runs as expected as well.

I can also build a sample app (ButtonEvents) and it runs fine on the Xcode Simulator and my iPod. [import]uid: 25080 topic_id: 5682 reply_id: 20185[/import]

All mine are 32 bit PNG’s as well. [import]uid: 4702 topic_id: 5682 reply_id: 20187[/import]

can one of you send me the file and the psd if you have a psd?

c [import]uid: 24 topic_id: 5682 reply_id: 20195[/import]

I can send you my PNG but I just wanted to say that I converted the PNG to a JPG for the background image and I do not get a black screen anymore. I see the image. I am now troubleshooting why it has stretched out on me. My image is bigger then the screen. But I can now see items in my Xcode Simulator by changing the PNG (I think my was 8-bit) to a JPG. all my other PNG’s lay overtop of the JPG with out issue.

I do not have a PSD for the file. [import]uid: 25080 topic_id: 5682 reply_id: 20199[/import]

Just an update my app and background was set for the retina display size of an iPod 4g and that is why the stretching/cropping occurred. I check the Xcode Simulator to an iPhone 4 and it displayed then I put it on the device and it worked as expected.

Thanks. [import]uid: 25080 topic_id: 5682 reply_id: 20347[/import]

I am having the same issue as well.

As far as I can tell, it’s happening when I try to load images. All mine are PNG-24. (exported from photoshop). [import]uid: 29520 topic_id: 5682 reply_id: 21824[/import]

Android ? iOS? can you post png? psd?

was the image done on windows? or mac and loaded on windows?

there are color profiles that need to be removed and the gamma between the two os are different

c [import]uid: 24 topic_id: 5682 reply_id: 21825[/import]

Both iOS and Android… however I have been trying to debug the problem on Android at the moment, but got the blank screen when I built the app on a mac earlier for ios.

On the android… graphics built in Photoshop CS5 (64bit) on windows and building for android 2.2 on a windows machine. testing on a Samsung Galaxy Tab.

No errors in simulator.

I just did a quick test, simple file, using PNG and JPEG and neither will load. I load a circle and text and rectangle shape on the display group fine, but the minute I try to load a image… freeze.

[import]uid: 29520 topic_id: 5682 reply_id: 21828[/import]

ok - can i get the images? or put them somewhere i can look? [import]uid: 24 topic_id: 5682 reply_id: 21831[/import]

Follow up… I opened those images (JPG and PNG) into Photoshop CS5 (NON 64bit version), resaved them and they loaded after the build.

Go figure… you think using the 64bit version of photoshop is the problem? I’m just resaving the file, not even changing the format or anything… [import]uid: 29520 topic_id: 5682 reply_id: 21832[/import]

do you still want the photoshop 64bit images mailed to you? [import]uid: 29520 topic_id: 5682 reply_id: 21835[/import]

yes at least one to have it for testing purposes

thanks

c [import]uid: 24 topic_id: 5682 reply_id: 21838[/import]

Hi,
i had the same issue.
In my case, the solution was be care on case sensitive coding with function calls.
The file which i want to call “myCalc.lua”.
Simulator does accept: director:changeScene(“mycalc”,“flip”), but IOS Simulator does not.
Klaus

Sorry for my bad english. [import]uid: 5456 topic_id: 5682 reply_id: 22569[/import]

Incorrect capitalization in require() is the most common reason for this. The device is case-sensitive, the simulator is not. [import]uid: 12108 topic_id: 5682 reply_id: 22574[/import]

If this is my problem to i don’t know yet because i had just got it and went in to the forums for help.

My app (for android) runs fine in the simulator but not on the phone. On the phone i just get a black screen and nothing happens.

I will check my requires now, but usually i copy past so should not be wrong. but ill check.

Can’t you make the simulator case sensitive to so if that’s the problem they never leave the simulators test bench?

Other reasons why i just get a black screen on my Android?
(I have build apps before that worked) [import]uid: 28895 topic_id: 5682 reply_id: 24180[/import]

(Could not edit my post, why? Should not the forum to post in be selected automatically?)

Anyhow, i did figure out what was wrong for me. I had put all my images in a folder called “images” and what happened was that the phone could not access them in this sub folder. But if i put them in the root it works fine.

Why is this? [import]uid: 28895 topic_id: 5682 reply_id: 24182[/import]

Hello
Sometimes I also have this black screen - first I’ve solved this problem as was described above by moving images and other files to root folder. My question is: when i have file like mypick.PNG (extension in upper case) - is devices case senstitive for extensions as well? [import]uid: 40521 topic_id: 5682 reply_id: 24629[/import]