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.
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.
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.
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)
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).
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With