Re: App won't run with entitlements on
Re: App won't run with entitlements on
- Subject: Re: App won't run with entitlements on
- From: Gideon King <email@hidden>
- Date: Thu, 29 Dec 2011 16:12:56 +1000
This sounds like a problem I had - took me ages to find the cause. The problem I had that when you turn on Entitlements, it automatically puts values in the iCloud key-value store and iCloud containers settings. If you don't have iCloud all set up, this will cause your application to crash. Remove those settings and it should work.
Hope this fixes it for you.
I have not found any mention of this in the documentation, and IMHO it's a terrible thing to add settings that cause your application to crash on startup just because you checked the Entitlements checkbox.
Regards
Gideon
On 29/12/2011, at 8:07 AM, Nick Zitzmann wrote:
> I tried searching around and couldn't find anything. What would cause a Mac OS X application to stop running once entitlements have been turned on in the build?
>
> I turned on entitlements (no sandboxing) and code signing, and now the app won't run. If I run it in Xcode, the app never runs, and the debugger appears to be hung. If I try launching it from the command line, I get a "permission denied" error even though execute permissions are turned on. If I try launching it from the Finder, then the app doesn't run, and this gets printed to the console:
>
> com.apple.launchd.peruser.502: ([0x0-0x3ac3ac].com.company.Application[37094]) Exited: Killed: 9
>
> The app runs fine if I turn off entitlements. How do I fix this? I already tried building the app using the Lion SDK (I normally use the Snow Leopard SDK), and tried building the app as a 32/64-bit hybrid (it is normally built for 64-bit only), and none of those things made a difference.
>
> Nick Zitzmann
> <http://www.chronosnet.com/>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden