Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Entitlements.plist still necessary for distributions in Xcode 4?

Is Entitlements.plist still necessary for distributions in Xcode? I've had no problem building ad-hoc distributions without it, but some documentation and many posts still describe it as required.

like image 317
orome Avatar asked Jun 06 '11 21:06

orome


People also ask

Where do I put entitlements in Xcode?

In your project's “Signing & Capabilities” panel, turn on the App Sandbox. This creates a new entitlement file in your project with the same name as the app target. Select the entitlements file. Click the Add button (+) to add a new property to the entitlements file.

What is entitlements file Xcode?

The entitlements file defines certain capabilities of your app. Usually, the file is automatically generated by Xcode when you enable a capability for your app. You only need the file if you enable certain capabilities, e.g. Healthkit integration. If you'd like to use these features, you have to add it.

How do I create an Entitlements file?

Select iOS > Resource > Property List. Name the new file " foo. entitlements " (typically, " foo " is the target name) Click the (+) next to "Entitlements File" to add a top-level item (the property list editor will use the correct schema due to the file extension)

How do you set Get task allow?

get-task-allow, when signed into an application, allows other processes (like the debugger) to attach to your app. Distribution profiles require that this value be turned off, while development profiles require this value to be turned on (otherwise Xcode would never be able to launch and attach to your app).


1 Answers

According to Ole Begemann you do not required Entitlements.plist for AdHoc Distribution:

There is a link to Technical Note TN2250, which state the details:

Code Signing Entitlements

Previous to Xcode 4.x, it was required that the developer create a Code Signing Entitlements file in the Application Bundle for Ad Hoc testing, that defines the entitlement "get-task-allow" with a value of "false" (un-checked). However with Xcode 4 that is no longer required so long as the application is shared via deferred signing on the Application Archives panel in Organizer. See the section Using the Build And Archive feature of Xcode for Deferred Code Signing for more information.

like image 144
marcus Avatar answered Oct 05 '22 23:10

marcus