app crashes in xcode simulator iOS 7 SDK

Hi,

OSX Mavericks

XCode 5.0.1

IOS 7 SDK

Corona SDK 2013.1241

I’ve just tried to built my app for iOS 7 for the first time, but the app doesn’t open in the xcode simulator. Only the splash screen image is shown. After that the app closes / crashes without any error message.

I think that iOS 7 SDK is the only SDK on my computer.

Corona doesn’t let me choose any SDK at all.

Any help appreciated,

Roman

p.S.: I even tried to compile and run another app ( which is basically just some text ) in the xcode simulator with the same result.

corona doesn’t let me choose a different SDK to compile with.

Is there any way to do so?

There should be some messages in the Console log.  For the Xcode simulator that is in the “Console” app.  What does it say there?

its use of the keychain access groups entitlement is not allowed

I already deleted the provisioning profiles and created new ones.

no difference in the simulator

don’t know what I’m doing wrong. my bundle identifiere is like com.company.appname.

even with a wildcard it doesn’t work…

desperate :frowning:

the weird thing is that it’s working on my real device 3gs ios 6.1 with new profiles.

but the ios7 simulator doesn’t take it…

something to do with info.plist?

It’s possible.  Do you have an iOS 7 device to test it on?  Is this a landscape app calling GameCenter or things like the camera or popups?

Can you post your build.settings

build.settings:

-- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight settings = { orientation = { default = "portrait", supported = { "portrait", } }, iphone = { plist = { --UIStatusBarHidden = false, --UIPrerenderedIcon = true, -- set to false for "shine" overlay --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend --[[-- iOS app URL schemes: CFBundleURLTypes = { { } } --]] } }, }

app:

local mytext = display.newText("hello",0,0,"Arial",20) mytext.x = display.contentWidth / 2 mytext.y = display.contentHeight / 2

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?