I have an exact error when I open a project written on another machine with a different profile.
So here is how I fix it: suppose my profile is DevelopmentProfile.mobileprovision , I copy this file to a directory and run this command:
security cms -D -i DevelopmentProfile.mobileprovision | grep -A12 "Entitlements"
Then I copy the XML output and paste it into a file called Entitlements.plist , put it in the project directory.
Then, in the assembly / code signing settings, you can select the corresponding DevelopmentProfile.mobileprovision compliance identifier.
This should solve the problem.
source share