[Resolved] Simplest build crashes everytime on device

Hello,
I’ve recently re-wrote my app with Corona and now trying to run it on iPad2 and iPhone4S.
I’ve got all the provisioning and certificates running fine, but even the simplest “Hello World” app crashes instantly when opened on either device.
I’ve tried searching online but I can’t find a clue. My Xcode version is 4.3.2, my devices versions are both 5.0.1, so that shouldn’t be a problem.
I was able to run a Unity app with those version no problem.
Please, could anyone direct me how I could further research this?

Thanks a bunch,

Hadas Noam [import]uid: 169943 topic_id: 33421 reply_id: 333421[/import]

What version of Corona are you using? [import]uid: 52491 topic_id: 33421 reply_id: 132784[/import]

Hello
I hade similar problems when i was using cider / luaGlider
If you are using that program make sure to remove the debug code

[import]uid: 147488 topic_id: 33421 reply_id: 132821[/import]

we are using 894
thanks
[import]uid: 169943 topic_id: 33421 reply_id: 132877[/import]

First of all - a correction. The version we have installed on the Mac is 971.
Could it be that we are not building it for the right iOS version?
I’ve seen online images that allow to select on the build window “Target iOS Compativility”.
However I just don’t have that option on the build window. Could anyone tell us why?
Thanks again,

Hadas [import]uid: 169943 topic_id: 33421 reply_id: 132889[/import]

Hi,

Just FYI: i spent few hours have silent crashes because of an extra pixel in Bitmap Mask for scroll view http://developer.coronalabs.com/reference/bitmap-masks-tableviews-and-scrollviews [import]uid: 179558 topic_id: 33421 reply_id: 132894[/import]

The Target iOS Compatibility was removed but not sure in which version, for corona you are targeting 4.3 upwards.

Best way to check for errors is keep your device plugged into your Mac and go into the Console on Xcode and run your app on your device and see what errors you get.

It could be something simple like a case error when doing something. Case errors are not shown in the simulator, but it will fail on the device (thanks to RobMiracle for that tip).

Dave [import]uid: 117617 topic_id: 33421 reply_id: 132903[/import]

Thank you e.arnautov, but we have no bitmap masks or anything complicated at all, it’s just a test app.

We’re getting this error from Corona on build:

failed to extract requirements data: 1
/Work/test1.app: invalid signature (code or signature have been modified)
failed to extract entitlements: 1
AssertMacros: entitlements_requested, At least need an application-identifier entitlements file: codesign_wrapper.c, line: 880

  • (null)

warning: Unable to extract codesigning entitlements from your application. Please make sure test1 is a valid Mach executable that’s properly codesigned. (-19050)
/Work/test1.app/test1: invalid signature (code or signature have been modified)

  • (null)

And I’ve looked this up and saw this was caused by keychain mess and we did have keychain mess because of renewing the developer enrolment… But I cleared everything up and set it with new provisions and certificates… But no solution [import]uid: 169943 topic_id: 33421 reply_id: 132915[/import]

I don’t know what iPhone Configuration Utility is.

I use Xcode to copy the app to my device. If you leave the device connected to your Mac and click on Console (under your device) you get to see if there are any errors when running your app.

Your not running the app in Xcode, it runs on your device.

Dave [import]uid: 117617 topic_id: 33421 reply_id: 132926[/import]

Hi Dave,
Thank you for your help, but I don’t see what you mean by running it on the device and seeing the console on Xcode?

I install the test app through iPhone Configuration Utility and then run it. I can open the Corona package from Xcode but all I get is a blank window. Xcode doesn’t seem to recognise the app at all. (and the app works fine on corona).

EDIT: When building to Xcode simulator it works fine too, but can I build from here to the device? Or run it and debug? [import]uid: 169943 topic_id: 33421 reply_id: 132925[/import]

Oh I’ve found it. Didn’t know that one, thanks a lot Dave!
It’s still crashing, but now I know I’m getting “EXC_CRASH (SIGKILL)” error.

Are crashes on launch related to code signing Peach? [import]uid: 169943 topic_id: 33421 reply_id: 132930[/import]

What version of Corona are you using? [import]uid: 52491 topic_id: 33421 reply_id: 132784[/import]

Likely not - no.

Update Xcode to 4.5+ and build Hello World with Corona 971 and let me know if that clears up your issues, please? I believe it very well may. [import]uid: 52491 topic_id: 33421 reply_id: 132979[/import]

Hello
I hade similar problems when i was using cider / luaGlider
If you are using that program make sure to remove the debug code

[import]uid: 147488 topic_id: 33421 reply_id: 132821[/import]

we are using 894
thanks
[import]uid: 169943 topic_id: 33421 reply_id: 132877[/import]

First of all - a correction. The version we have installed on the Mac is 971.
Could it be that we are not building it for the right iOS version?
I’ve seen online images that allow to select on the build window “Target iOS Compativility”.
However I just don’t have that option on the build window. Could anyone tell us why?
Thanks again,

Hadas [import]uid: 169943 topic_id: 33421 reply_id: 132889[/import]

Hi,

Just FYI: i spent few hours have silent crashes because of an extra pixel in Bitmap Mask for scroll view http://developer.coronalabs.com/reference/bitmap-masks-tableviews-and-scrollviews [import]uid: 179558 topic_id: 33421 reply_id: 132894[/import]

The Target iOS Compatibility was removed but not sure in which version, for corona you are targeting 4.3 upwards.

Best way to check for errors is keep your device plugged into your Mac and go into the Console on Xcode and run your app on your device and see what errors you get.

It could be something simple like a case error when doing something. Case errors are not shown in the simulator, but it will fail on the device (thanks to RobMiracle for that tip).

Dave [import]uid: 117617 topic_id: 33421 reply_id: 132903[/import]

Thank you e.arnautov, but we have no bitmap masks or anything complicated at all, it’s just a test app.

We’re getting this error from Corona on build:

failed to extract requirements data: 1
/Work/test1.app: invalid signature (code or signature have been modified)
failed to extract entitlements: 1
AssertMacros: entitlements_requested, At least need an application-identifier entitlements file: codesign_wrapper.c, line: 880

  • (null)

warning: Unable to extract codesigning entitlements from your application. Please make sure test1 is a valid Mach executable that’s properly codesigned. (-19050)
/Work/test1.app/test1: invalid signature (code or signature have been modified)

  • (null)

And I’ve looked this up and saw this was caused by keychain mess and we did have keychain mess because of renewing the developer enrolment… But I cleared everything up and set it with new provisions and certificates… But no solution [import]uid: 169943 topic_id: 33421 reply_id: 132915[/import]

I don’t know what iPhone Configuration Utility is.

I use Xcode to copy the app to my device. If you leave the device connected to your Mac and click on Console (under your device) you get to see if there are any errors when running your app.

Your not running the app in Xcode, it runs on your device.

Dave [import]uid: 117617 topic_id: 33421 reply_id: 132926[/import]