If you are getting
then your profile isn’t valid and you should check out this post. This biggest thing to remember is
- Delete all the profiles stored in
- Double click your .mobileprovision file and it will get loaded into XCode - There is a chance that it will get loaded by another application. If that is the case, right-click it and open it with xcode.
- Quit XCode completely. I’m not sure why this is necessary, but often XCode refuses to build unless it starts up with the profile already ready.
Lastly, ensure not only that Entitlements.plist is included in your project (click File, New File, Code Signing, Entitlements), and that get-task-allow is unchecked, but in your “Ad Hoc” build profile (Project, Edit Active Target) expand the list to “All Settings” make sure the “Code Signing Entitlements” field is filled out with your “Entitlements.plist”."