My game shows the splash screen, then nothing

Hello all,

For the past few weeks, I have been able to preview my App (with ads) by using Build>iOS>for XCode Simulator without a problem. Now, it just shows the splash screen and the status bar, but that’s it. Everything else below is black. I can exit the app and launch it again, but nothing changes.

Did I miss something? Has anyone experienced this? Is it related to iOS7?

Have you been working on your code during that time?  Maybe you inadvertently introduced a bug that’s causing your app to crash/hang.  Have you looked at the console log for any error messages?

Does it run properly in the Corona Simulator?

  • Andrew

Yes, it does run properly in the Corona Simulator; that’s the weird thing. It’s not hanging; it seems to launch the app just fine, it just isn’t rendering any of the graphics below the status bar at the top.

Not sure it matters, but I do have references to 4 different ad networks in my app, managed by an external LUA file, which was working fine up until now. In fact in order to even test the ads, I have to run it in the Xcode Simulator.

Also, Apple is in the process of migrating my individual developer account to a company developer account. When I logged in recently I was surprised to see a bunch of old Provisioning Profiles that I no longer needed.

For this particular app, for device testing purposes I was using the generic Development Profile I created that uses my domain and an asterisk for the appname.

com.marlonsapps.*

OK.  Are you able to inspect the log when it’s running in the XCode Simulator to see if there are any useful error messages?

  • Andrew

Hi auk,

Forgive me for asking but… Where exactly do I find this log?

No need to forgive, that’s the question you should be asking.  :-)  Take a look at this blog post which talks about it: http://www.coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/.  In particular, there’s a section about how to see the log when running in the Xcode Simulator.

  • Andrew

Thanks Andrew,

From looking at the link, you meant test it on the Device and look at that log. I gotcha.

I’ll let you know what I find.

Thanks again.

Yes, you can certainly do that.  But there’s also a (short) section in the blog that talks about looking at the log when running in the Xcode Simulator on your computer.  You could try that too.

  • Andrew

Hey Andrew,

The last thing it says in System Log Queries>All Messages is this:

"failed to get signing info for pid=1**** (cannot make code: invalid signature (code or signature have been modified))

OK interesting.  It’s possible that this does have to do with your provisioning profile / certificate setup.  A Google search doesn’t turn up anything helpful though.

Is there a reason you have to use a generic profile as opposed to an app-specific profile?

  • Andrew

You know what, I was used the generic one because I was rusty with Corona after a long hiatus, and re-learning how to get my apps running on my device. So I’m guessing it’s a best practice to create a Developer, Distribution, and App Store Profile for each app then?

Yes, I think it’s a good practice to have app-specific profiles, and if I recall, I think it’s required if you want to use push notifications and certain other features.

  • Andrew

I finally figured it out yesterday. I had copied and pasted from another build.settings file to include the new iOS 7 app icons, and completely overwrote the plugins table beneath that implemented my vungle and playhaven ads, lol.

Thanks for your help too, Andrew.

Have you been working on your code during that time?  Maybe you inadvertently introduced a bug that’s causing your app to crash/hang.  Have you looked at the console log for any error messages?

Does it run properly in the Corona Simulator?

  • Andrew

Yes, it does run properly in the Corona Simulator; that’s the weird thing. It’s not hanging; it seems to launch the app just fine, it just isn’t rendering any of the graphics below the status bar at the top.

Not sure it matters, but I do have references to 4 different ad networks in my app, managed by an external LUA file, which was working fine up until now. In fact in order to even test the ads, I have to run it in the Xcode Simulator.

Also, Apple is in the process of migrating my individual developer account to a company developer account. When I logged in recently I was surprised to see a bunch of old Provisioning Profiles that I no longer needed.

For this particular app, for device testing purposes I was using the generic Development Profile I created that uses my domain and an asterisk for the appname.

com.marlonsapps.*

OK.  Are you able to inspect the log when it’s running in the XCode Simulator to see if there are any useful error messages?

  • Andrew

Hi auk,

Forgive me for asking but… Where exactly do I find this log?

No need to forgive, that’s the question you should be asking.  :-)  Take a look at this blog post which talks about it: http://www.coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/.  In particular, there’s a section about how to see the log when running in the Xcode Simulator.

  • Andrew

Thanks Andrew,

From looking at the link, you meant test it on the Device and look at that log. I gotcha.

I’ll let you know what I find.

Thanks again.

Yes, you can certainly do that.  But there’s also a (short) section in the blog that talks about looking at the log when running in the Xcode Simulator on your computer.  You could try that too.

  • Andrew