Apps fail to launch after installing latest Corona and building + installing to iPhone

Hello,

I updated both my iPhone software and Corona yesterday, iPhone software version is now 4.3.3.
What I discovered is that any builds won´t work, they quit back to the icon screen after 2-3 seconds, even though they work as they should in the Corona simulator. The same apps worked fine earlier, before the iOS software upgrade, and with the older version of Corona.

To give an example: previously, my game would display a logo and the status bar, before going to the main menu. What happens now is that I se the logo and the status bar for 2-3 seconds, then the app quits and shows the iphone icon screen. I have not made any changes to the project code, so that should perhaps not be the problem.

Has anyone else encountered the same problem, and what was the reason and how did you fix it? [import]uid: 43140 topic_id: 11447 reply_id: 311447[/import]

I had this problem for a while then it suddenly went away.

It might be something to do with provisioning profiles, make sure they haven’t expired are installed on the device so it can run the app. [import]uid: 29676 topic_id: 11447 reply_id: 41464[/import]

What version of Corona are you running? You mention upgrading but not whether it was to the last stable build or the latest daily.

Peach :slight_smile: [import]uid: 52491 topic_id: 11447 reply_id: 41471[/import]

It´s version 2011.484 (2011.4.12) .
And I get the same error even if I just have a main.lua file that sets the status display to visible. I´ve not had this kind of error before and I´ve been using Corona since early this year, so I figure it´s got something to do with the software upgrades. [import]uid: 43140 topic_id: 11447 reply_id: 41489[/import]

Are you building using the latest Beta SDK from Apple? That is a no-no at the moment. [import]uid: 5317 topic_id: 11447 reply_id: 41490[/import]

My Xcode says Version 3.2.5, the iPhone software is version 4.3.3 , and I was under the impression that the actual building was done via Ansca mobile and not on the MacBook I´m using?

That said, I´m “just” the game designer and painter for these projects we´re trying to finish, no professional programmer. And I usually use win 7, not this Mac OS. [import]uid: 43140 topic_id: 11447 reply_id: 41491[/import]

I have now installed the latest version of Xcode, not the beta, and I´ve created a new provisioning profile and done a test-build of the game. As earlier, the game works fine in the simulator, but fails to launch on the iphone. The iphone software is still the same as written in my earlier posts. The game tries to launch, I see my logo for 2 seconds and I see the top status bar, then it just quits and brings back the icon screen on the iphone. [import]uid: 43140 topic_id: 11447 reply_id: 41520[/import]

No suggestions to what the problem can be or any way of solving it?

I read up on similar problem in the apple forums, no cure but some suggested to download a free app from appstore and install it, and that should fix the things but it doesn´t. The only apps I got a problem with are the ones built using corona, they´re the only ones that crash after 1-2 seconds. [import]uid: 43140 topic_id: 11447 reply_id: 41982[/import]

Raymond, if you build one of the sample apps from the SampleCode folder that ships with Corona, I assume you are not having issues?

Can you build something like Simple Pool and let me know?

Thanks,
Peach :slight_smile: [import]uid: 52491 topic_id: 11447 reply_id: 42080[/import]

@ peach:

I´ve now made sure that I have everything up to date: Corona latest official build from the frontpage, latest non-beta Xcodeversion and the 4.3.3 iOS software on the iphone. The provisioning profile I´m using to build the testgame (Simple pool) is registered and valid. I´m building Simple pool for the iphone only, choosing the standard other options from the build menu.

The app takes a few minutes to build and gives no build errors when done. I drag the simple pool app into iTunes and make sure it´s installed to my iphone. Upon launching the game, I see “Simple pool” as text upon dark background for 2 seconds, then it quits without warning back to the icon screen on my iphone.

I have not done any modifications to the Simple pool code, and I´m using a Macbook pro to build the apps with.

This is the same thing that happens with all my corona built apps after the various upgrades.They worked perfectly as they should, before the upgrades. [import]uid: 43140 topic_id: 11447 reply_id: 42102[/import]

I had same problem with @raymond5 exactly while I used Official Build 268 and tested with iPhone2 (jailbroken 3.1.3) with given sample code from Corona without modifying anything. It shows only about 2 sec and crash out.
However, that problem went away after using latest daily build 551. [import]uid: 9137 topic_id: 11447 reply_id: 42104[/import]

@paingpyi : so you´re saying that might fix my problem? I wanted to be able to finish at least one or two of the apps before buying Corona. As the free version aint working for me now, I´m very hesitant to buying Corona and maybe find out that it´s still not working even with a daily build. There should be a way of downloading older versions, just to test and verify if the recent update is the culprit or not. [import]uid: 43140 topic_id: 11447 reply_id: 42151[/import]

Maybe you wait for another official build and try again. I can’t guarantee all your problems would be solved if you become subscriber since I’m also still waiting from them to update Sprite API as a subscriber. However, things are getting better in each build and we may give some time for them. [import]uid: 9137 topic_id: 11447 reply_id: 42161[/import]

Hey raymond5,

Thanks for the extra info - it seems an odd problem to be having and not one I’ve seen others reporting, but I will try to talk to someone about it today to see if there are any suggestions for solutions.

Peach :slight_smile: [import]uid: 52491 topic_id: 11447 reply_id: 42264[/import]

Your example sounds very much like this (on android). On launch, app tries to start, then in a few seconds, disappears and goes back to previous screen (icons,home,etc)

See last post here: http://developer.anscamobile.com/forum/2011/06/15/audio-resume-help

and this post: http://developer.anscamobile.com/forum/2011/06/23/apps-built-build-551-crashes-galaxy-tab-ok-milestone-droid#comment-42162

I opened a bug a few days ago, but have not heard back yet.

Maybe unrelated…but wanted to at least put it out there. [import]uid: 39506 topic_id: 11447 reply_id: 42284[/import]

I got my hands on a previous version of Corona SDK, uninstalled the recent version and onstalled the old one. This is Version 2011.268 (2011.1.20) , and I am getting the same error trying to launch the Corona built apps with that as well. It seems that the upgrade to iOS 4.3.3 don´t like Corona SDK at all. [import]uid: 43140 topic_id: 11447 reply_id: 42399[/import]

Weird, when all else has failed, I tried to build for xcode simulator, and got the same error showing up there. This might limit the possibilities as to what is causing the error?
This was when using the Version 2011.268 (2011.1.20) of corona with Xcode Version 4.0.2.

I´ll go try using the recent non-subscriber Corona build and see if the error is still showing up when building the apps for the xcode simulator.

*edit: When using Corona Version 2011.484 (2011.4.12) and building for Xcode simulator, I still get the same error showing up, app launches then quits after 1-2 seconds* At least it´s not the physical iPhone that´s causing the error. [import]uid: 43140 topic_id: 11447 reply_id: 42403[/import]

*removed*
[import]uid: 44742 topic_id: 11447 reply_id: 42519[/import]

As an attempt to rout out any possibilities of install errors, I formatted my mac (yes, that desperate to get this thing working again) and re-downloaded and re-installed everything…and still getting the same errors on the iphone and in the xcode iphone simulator… *sighs*
[import]uid: 43140 topic_id: 11447 reply_id: 42521[/import]

@raymond5,

I just upgraded my iPhone4 to os 4.3.3 and built the TimeAnimation sample with Corona SDK 484 and 555 and don’t see any problems launching and running apps. I’m using Xcode 4.0.

I would suggest using the Xcode organizer with the iphone connected and seeing what errors are displayed in the Console section for your device. It sounds like it crashed and there may be a crash log associated with the closer.

If you are still having problems, please file a bug report and include the crash log and the built causing the crash. [import]uid: 7559 topic_id: 11447 reply_id: 42774[/import]