I created a basic application in Xcode 4.2. Very simple application, I have not changed a single thing. Push run, and you get the standard base application window. If I turn entitlements on for my target and hit run, I don't get any debugger errors, but the window never comes up. I checked the logs with Console.app and got the following:
First error I get:
taskgated: killed com.alsbury.EntitlementsTest[pid 15903] because its use of the com.apple.developer.ubiquity-container-identifiers entitlement is not allowed
After removing the iCloud Containers "com.alsbury.EntitlementsTest" I get this error:
taskgated: killed com.alsbury.EntitlementsTest[pid 15903] because its use of the com.apple.developer.ubiquity-container-identifiers entitlement is not allowed
Because of the iCloud type stuff, I even added an Application to my developer account, a provisioning profile and added my machine. Any thoughts? Very confused right now.
Make sure of a few things. It's unfortunately a tedious process, but if you follow the steps carefully, you should be all set.
1) In the Developer Certificate Utility page on Apple's site, you have your machine registered along with its UUID.
2) You've created and downloaded a development certificate.
3) Your App ID (in the same utility) is configured for iCloud. This generally just involves you checking a checkbox.
4) Your development provisioning profile for your application is pointing to the App ID mentioned in (3), and also the hardware system registered in (1), and also the certificate mentioned in (2)
5) After downloading the new provisioning profile, install it both in the system by double-clicking it, and in Xcode by dragging it to the "Provisioning Profiles" pane in your Organizer.
6) In the Build Settings for your application, make sure that the Code Signing Identity is pointing to your new provisioning profile.
来源:https://stackoverflow.com/questions/7990353/turning-entitlements-on-in-xcode-prevents-bare-bones-app-from-launching