app crashes in xcode simulator iOS 7 SDK

I personally never like Xcode managing my provisioning profiles.   Consider this:

Quit Corona SDK.

Open up the terminal.

cd ~/Library/MobileDevice/Provisioning\ Profiles/

rm *.mobileprovision

Then hand download your profiles from the provisioning portal.  There is a real good change that Finder has that library folder hidden so you will probably have to use the command line to move them into the right place (or you can google on how to get the library folders visible to Finder again).

mv pathtowhereyoudownloadedthem/*.mobileprofile .

That’s assuming your still in the Provisioning Profiles folder.  Note the <space> dot at the end of the line.  Lets say you downloaded them to your Downloads folder:

mv ~/Downloads/*.movileprofile .

Then restart Corona SDK and try building.

sorry, I just edited my recent post because I discovered that xcode moved their provisioning profiles to settings…

so it’s sync again…

anyway it still doesn’t work. I’m out of ideas…

Can you try and build the hello world sample app?

yes, everything works fine in coronas simulator and even on my real device (3gs iOS 6.1)

it just doesn’t work in xcode simulator. always the same error in console log.

this makes me crazy. I even deleted my certificate and made a new one.

nothing works…

Have you tried building the Hello World sample app for the Xcode simulator?

sorry, what do you mean?

I compiled it for the xcode simulator when trying to test it there.

it would be handy to have a real ios7 device to see if it’s only the xcode simulator that doesn’t work.

I have the same problem. After updating OSX and everything else my app is crashing on startup (after showing Launcher image) without any useful message:

[12:56:01] >>    Marker - Oct 24, 2013, 12:55:41 PM

Oct 24 12:55:41 — last message repeated 18 times —

Oct 24 12:55:41 hayks-air backboardd[17636] <Error>: __hid_dispatch_pthread_root_queue_create_block_invoke: specific=0x4e61c60 pthread_self=0xb0197000

Oct 24 12:55:41 hayks-air backboardd[17636] <Error>: __hid_dispatch_pthread_root_queue_create_block_invoke: specific=0x4e61ac0 pthread_self=0xb0219000

Oct 24 12:55:42 hayks-air profiled[17640] <Notice>: (Note ) MC: Waiting for DataMigrator…

Oct 24 12:55:42 hayks-air SpringBoard[17646] <Warning>: LICreateIconForImage passed NULL CGImageRef image

Oct 24 12:55:43 hayks-air com.apple.iphonesimulator.launchd.658a077d[17635] (UIKitApplication:com.hhayotsyan.amazeing.free[0x1a68][17678]) <Notice>: Service exited due to signal: Killed: 9

Oct 24 12:55:43 hayks-air com.apple.iphonesimulator.launchd.658a077d[17635] (UIKitApplication:com.hhayotsyan.amazeing.free[0x1a68]) <Notice>: Service only ran for 0 seconds. Pushing respawn out by 2147483647 seconds.

Oct 24 12:55:43 hayks-air ba

[12:56:01] >>    ckboardd[17636] <Warning>: Application ‘UIKitApplication:com.hhayotsyan.amazeing.free[0x1a68]’ exited abnormally with signal 9: Killed: 9

Oct 24 12:55:43 hayks-air profiled[17640] <Notice>: (Note ) MC: Waiting for DataMigrator…

Oct 24 12:55:47 — last message repeated 3 times —

Oct 24 12:55:47 hayks-air lsd[17657] <Warning>: LaunchServices: Currently 0 installed placeholders: (

    )

I have build both 6.1 and 7.0beta SDKs and runned on iOS 7.0.3 and iOS 6.1 Simulators.

Hello World app crashes too with the same result. I tried to remove everything from ~/Library/Application Support/iPhone Simulator/ and then rerun again, restarted computer and xcode.

On device everything is working just fine. If you need additional details on problem let me know

@haik

that’s interessting. you have another error message though. your’s pointing to memory issues. see the post here:

http://stackoverflow.com/questions/5959038/memory-leak-application-exited-with-signal-9

@romanfischer 

I saw that and thought that it is from my last modifications of code. But all my old games and even Coronas Sample Hello World application crashes too. 

@rob miracle

maybe this is helpful. seems that projects have to point to provisioning profiles in xcode 5 too…

http://stackoverflow.com/questions/18818381/xcode-5-code-signing-entitlement-errors

Provisioning profiles worked great until I downloaded Xcode 5?   

With Mavericks, xcode 5, version Corona 1240. I have the same problem.

Hello World sample app offers the same result… It does not work on a device with IOS 7.

System log “Service exited due to signal: Killed: 9”

okay I just checked my codesigning by entering following command into the terminal:

codesign -d --entitlements - /Users/myname/Desktop/testapp.app

output:

\<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"\> \<plist version="1.0"\> \<dict\> \<key\>application-identifier\</key\> \<string\>RNDMRND88M.com.mycompany.testapp\</string\> \<key\>keychain-access-groups\</key\> \<array\> \<string\>RNDMRND88M.com.mycompany.testapp\</string\> \</array\> \<key\>get-task-allow\</key\> \<true/\> \</dict\> \</plist\>

looks allright, doesn’t it?

adhoc doesn’t work either.

Have you gone into Xcode and had it sync your profiles also?

yep, if I didn’t I wouldn’t have the option to choose from in corona before building it.

Hi @roman85,

Just curious, has this happened only since you upgraded to Mavericks? Or were you experiencing this with Mountain Lion too?

Thanks,

Brent

Hi Brent,

First of all thank you and Rob for taking care of this issue.

Before I was on Mavericks I had neither Xcode 5 nor iOS 7 SDK installed.

I think I was using xcode 4.6 with iOS SDK 6.1 and no I never had any trouble with the simulator or any provisioning profiles before.

Others in this thread, can you please confirm if these symptoms began appearing in Mavericks? Or with upgrade to iOS 7.0.3? Or both? We need to attempt to narrow down the possible cause of this.

Thanks,

Brent

i have the same problem, after updating to Marvericks. app crash and close in iOS simulator after launch screen…

(with the latest version xcode update on appstore)

log: ’ exited abnormally with signal 9: Killed: 9