I have had huge problems trying to provide my iPhone Applications to friends using the Adhoc Distribution method. I thought I was following Apple’s instructions down to the letter:
- Obtain an Adhoc Distribution Provisioning Profile
- Install provisioning profile in XCode
- For my project, create a new build profile called “Adhoc Distribution” copied from the “Release” build setting
- Set the code signing properties to match the Adhoc Distribution Provisioning Certificate
- Build the app
- Provide the Adhoc Distribution Provisioning profile along with the app to my friends
- Drag and drop into iTunes
- Sync iPhone
However, it all failed at step 8. I would always get the dreaded “Verification Failed” message when we sync’ed the App to the iPhone in iTunes. I COULDN’T get this to work – until now.
I’ve discovered I was missing a step in my project’s “Adhoc” Build settings. If you’ve done all the above, and are getting the error, try the following:
1. Edit your “Adhoc” build settings and set the Code Signing Entitlements to dlist.plist
2. Now close your build settings and add a new file to your project. When prompted, choose Code Signing and Entitlements:
3. Call the file dlist.plist
4. Click on the file and untick the get-task-allow option.
5. Save your project, do a Clean All Targets and then Build.
6. Provide your app to your friends and it should now work!
Few quick tips if it’s still not working:
- Make sure you build using “Device” as the setting instead of “Simulator”
- Make sure your app identifier is set in the info.plist file