Blank Screen on Device

I’m using the trial version of Corona…

I have a simple app that runs fine in the simulator. I’ve created an App ID for it and a development provisioning profile which uses that AppID and is configured for my device. I selected Open for Build…

  1. this particular development provisioning profile does not show up, however a number of other (wildcard) provisioning profiles do show up. They’re all in the same folder /Users/matt/Library/MobileDevice/Provisioning Profile

  2. I chose one of the wildcard profiles and hit ok in the build dialog. Corona left an an app bundle on my desktop as expected. I copied it over to my device. However when I run it on my device I get a blank screen—well the status bar shows up. I do get the dialog with the message that shows up in the trial version. But no app!

What steps can I take to try and debug this?

Thanks,

Matt
[import]uid: 78 topic_id: 316 reply_id: 300316[/import]

Actually…I should have done a little more research first. I just read the bug report about the problem with filenames greater than 8 chars. I think this is what’s happening here. I loaned my iPod out until tomorrow, so I’ll try it again then.

Matt
[import]uid: 78 topic_id: 316 reply_id: 466[/import]

Hi mmb,

I have the very same issue, but i think it has to do with the certificate, you need an ADHOC distribution certificate, to work i think, not a developers certificate.

i will test this when i have the time.

Cheers,
Jasper
[import]uid: 2734 topic_id: 316 reply_id: 468[/import]

@mmb: Please let me know if you succeeded before i have taken any steps :wink:

Thanks
[import]uid: 2734 topic_id: 316 reply_id: 471[/import]

Update of tinkering in progress…

I renamed the offending package to have a filename less than 8 characters. Rebuilt. Still blank.

I noticed that when I reopend the simulator, it now sees the developer cert with the specific app ID (as opposed to the one with the wildcard ID which I’ve been using). Tried that. But now when I try to install it, Xcode complains that

“The entitlements specified in your application’s Code Signing Entitlements file do not match those specified in your provisioning profile.”

I have an ad hoc deployment cert for this app, but its grayed out in the list in the open for build dialog and says “not available in trial”

I’m going to go back and step through this process slowly and carefully again and see if I can identify any steps I did incorrectly. Note the Corona Device Build Guide says on p. 14 that the “Development profile can be used, but is not necessary.”

BTW: should have added this before:

Corona Simulator version is Version 1.0 (2009.11.28.2)
Development device is a MacBook Pro with OS X 10.5.8
My test device is a 2nd gen 16G iPod touch with 3.1.2 (7D11) OS.
Matt
[import]uid: 78 topic_id: 316 reply_id: 474[/import]

I apologize, but there are a few typos in that guide, such as, there wasn’t a trial version when it was written. The trial version will only let you use the ‘Development Provisioning Profile’. The paid version lets you use whatever you want. The ad hoc profile is part of the distribution profile, which is why its disabled in the trial.

As for the error you’re seeing, it sounds like your provisioning profile doesn’t have the device you’re using specified in it. If you’ll recall, there are check boxes that show up next to the devices you want to allow to be used with that profile.

If all else fails, you can go through the process of creating your profiles again (that seems to help some people who’ve seen this error). Dump your certificate and private key and have the iphone program portal re-create everything. This process is confusing (not to mention annoying) and even we get tripped up from time to time.

HTH! [import]uid: 5 topic_id: 316 reply_id: 475[/import]

No problems. I know how hard it is to keep everything up to date, etc. I’ve double-checked and the profile does have the current device specified. That being the case, your suggestion to dump the certificates and re-create them was what I was leaning towards anyway, so I’ll go ahead and do it. Probably won’t get around to it until tomorrow.

It certainly feels like on every iPhone project I’ve done (both straight Obj-C and now tinkering with Corona), the code signing bit is harder than the actual coding :slight_smile:

Matt
[import]uid: 78 topic_id: 316 reply_id: 476[/import]

Ok, then i’am back with my same issue’s

on both 3G and 3GS black screen when starting up, have tested the starfieldsample as you guys made a movie of it.

I have a development certificate witch also let me install apps from out of XCode itself, so the development certificate looks fine, but why then do i not see a starfield, what could then be the problem.

Thanks,
Jasper

[import]uid: 2734 topic_id: 316 reply_id: 477[/import]

Jasper, can you send me your main.lua file? I know you copy pasted it earlier, but I want to take a look at the file itself and see if maybe for some reason its not looking at the characters properly or something along those lines, like smart quotes or some such.

jeff@anscamobile.com [import]uid: 5 topic_id: 316 reply_id: 478[/import]

@Jeff => Mail is on it’s way

Also just build the fishes sample. Installed on the iphone and runs very nice (no black screen), so my certificate is good :slight_smile:
[import]uid: 2734 topic_id: 316 reply_id: 479[/import]

This is very strange, that file seems to work fine for me as well. Is anyone else seeing this? Jasper, do you have another device you can test on, or just the ipod? I’ve sent this to one of our developers to take a look at and I’ll let you know what he finds. [import]uid: 5 topic_id: 316 reply_id: 480[/import]

3G and 3GS, same issue, probably has to do with the current version of the iphone OS ?

both iphone’s:

3G : version 3.0
3GS : version 3.0 [import]uid: 2734 topic_id: 316 reply_id: 482[/import]

In light of freshworks’s comment above, I tried building the fishes sample and installing it on my iTouch. Works! So my certificate is good. I went through and commented out 90+% of my app and tried building it and installing it. That works too. So I’ve gone through and bit by bit been adding code back in. I’ve finally got the whole thing built and running on my iTouch (it’s dog slow, but that’s another issue…:slight_smile:

So I tried to do this methodically to pin down where the problem was but wasn’t able to discover that. If I have similar problems in the future, I’ll try and get more data. As somebody else mentioned in another thread, on device debugging would be nice. At the very least, being able to get Crash Logs through the Xcode organizer would be a start.

Thanks,

Matt

P.S. I just noticed that the problems freshworks is having are with a “starfields” app. In a strange, Twilight Zone, coincidence, my app has a package named starfields. Maybe the name is cursed! (And maybe the example in the ANSCA docs is influencing a lot of similar minds…:wink:

[import]uid: 78 topic_id: 316 reply_id: 487[/import]

I had the same problem today with the blank screen. Everything was working fine in the simulator, but once I tried loading it onto the device I got a blank screen. In my case it seems to be related to the file names of my files. I had these files:

class.lua
block.lua
board.lua

After a lot of experimenting I renamed to:

myclass.lua
blockpiece.lua
theboard.lua

And it now works. I’m thinking if there are already some lua files present in the program built for the device with some of these filenames. However, I also couldn’t get “gameboard.lua” to work, so it seems fairly random. I must say this needs to be documented somewhere! [import]uid: 262 topic_id: 316 reply_id: 504[/import]

We are looking into this right now… [import]uid: 24 topic_id: 316 reply_id: 505[/import]

@PBruce

Strange , because i have the same problem, but only using a main.lua file

Cheers
[import]uid: 2734 topic_id: 316 reply_id: 509[/import]

Could I get you guys to send me your system profiler output? info@anscamobile.com [import]uid: 5 topic_id: 316 reply_id: 510[/import]

is there a way we can get the assets and code to see why it is happening?

Carlos [import]uid: 24 topic_id: 316 reply_id: 514[/import]

any resolution on this? i’m getting a blank build on iphone as well, even with a sample app [import]uid: 8791 topic_id: 316 reply_id: 7702[/import]

Err I meant, will pick up thread tomorrow and fwd to support …

me

[import]uid: 24 topic_id: 316 reply_id: 7718[/import]