Build dies

Mar 19 17:09:11 Unknown-00-25-4b-cf-34-2a com.apple.launchd[1645] ([0x0-0xe80e8].com.anscamobile.Corona_Simulator[6350]): Exited with exit code: 1
Mar 19 17:43:00 Unknown-00-25-4b-cf-34-2a com.apple.launchd[1645] ([0x0-0xf40f4].com.anscamobile.Corona_Simulator[6681]): Exited with exit code: 1

I’m having a “interesting” issue.
I build a test version of our app, and managed to get it down to the phone.
We’ve came along way, and want to push a new version down. When I build,
the simulator window “closes” and the app/build seems to close without writing anything.

It appears the simulator “died”, the error code looks like 1645.

I tried to validate by building a “sample” app, and everything works fine.

Help, need to show the executive team on monday. !!! [import]uid: 4656 topic_id: 647 reply_id: 300647[/import]

Fixed - Found a “dead” copy paste lua file.
Its not “used” in the app actually, nor “required”, but it “still” built.
So you really need to be careful of any “.lua” file in your builds.

Now i have a “new” problem. The app behaves very different on the phone verse the
simulator. Buttons are missing, etc, that work perfectly fine on simulator. I suspect I’m getting a fault,
but I dont see a “trace” of the app faulting to know where to look.

So how do you know “where” a corona app “dies”, if there is no “messages” as in the simulator? [import]uid: 4656 topic_id: 647 reply_id: 1287[/import]

in the Corona folder, there is a program called “simulator” or “corona terminal”. the corona terminal will launch “Corona simulator” and you can see events from the simulator and errors displayed in the terminal.

Carlos [import]uid: 24 topic_id: 647 reply_id: 1291[/import]

:slight_smile:
Here’s “two” interesting things.

  1. The build process looks at lua files, that the simulator never touches. Example: I had a pp.lua, that I’d downloaded from the web
    in my game folder, but decided to write my own. I’d forgot about it. Game ran fine in simulator. When I went to build, the “dead” code
    tripped up the build process, and it simply died, with no message, or complaint of what the problem was.

  2. The “new” issue, after removing “pp.lua”, is the game runs well in the simulator, but has issues in the phone itself. Using the “console”, I can
    see the “normal” diagnotic messages, but I dont see any “indication” of what the issue is. Ie. I think the game “faulted”, but I dont see any “lines” to indicate it,
    in the iphone console.

I’m a past master at using the simulator. My problem is how to debug when the issue only shows on the phone. [import]uid: 4656 topic_id: 647 reply_id: 1298[/import]

Correct – the build process will grab any Lua files in the directory. It doesn’t execute your code to find out what other code is actually called, since that would slow down the builds.

Are you still having the mysterious problems on-device? Do you want to zip your project folder and send it to us to take a look? [import]uid: 3007 topic_id: 647 reply_id: 1341[/import]