I got this error with Xcode 5 when I try to run the app on my device.
The executable was signed with invalid entitlement
It work
I had a similar issue when I updated to Xcode 10, I solved the issue going to File > Project Setting, in the "New Build System" option select "Legacy Build System". This made the trick for me, I hope this helps to someone.
The solution for latest Xcode:
First you have to check what is enabled in your Member center for your specific AppID:
Then in your appropriate target in Xcode you have to enabled the same capabilities: In this case: App Group
, Game Center
, In-App Purchase
. All of them have to be enabled in your target in Xcode.
However it doesn't matter for DEBUG mode:
it very matters for your RELEASE mode:
Note that Game Center
and In-App Purchase
are enabled by default in Member Center but are disabled in Xcode's target.
I solve this by deleting all "PROVISIONING_PROFILE=..."
and "PROVISIONING_PROFILE[sdk=iphoneos*]" = ...
in project.pbxproj and restart Xcode and set provisioning profiles for the target again.
(Xcode 6.1)
The problem for me was in my Build Settings; I had my Provisioning Profile set to an App Store Production Profile when trying to deploy to a device. I switched it to 'Automatic' and it resolved my issue. You could also set it to your Dev Provision Profile.
I also have 2 Certificates, so I added my second Certificate to my dev provision. Others probably won't have this problem.
No solution worked for me until I've checked and set app Tests target to same provisioning profile as main app. Or if you are using automatic singing make sure you have same team selected in Tests target.
I had to match the app's capabilities in Xcode5 under
Capabilities ->
In-App purchase -> ON
Game Center -> ON
with that in the provisoning profile.