iOS – Fix Entitlement Has Value Not Permitted by a Provisioning Profile Error

cocoa-touchiosios4xcodexcode4

After testing my app for the past couple weeks we're finally trying to get the app submitted to the app store. Prior to submitting, I wanted to get my production push notifications set up. I went and installed my provisioning profile for production set it in my code identifiers in the XCode build area and launched the app hoping that the production push notifications would work.

The first problem that I'm running into now, is that no matter what provisioning profile I select in the code identifiers, I end up with these error codes:

 <Error>: entitlement 'keychain-access-groups' has value not permitted by a provisioning profile
Aug 29 22:12:58 unknown amfid[349] <Error>: entitlement 'com.apple.developer.ubiquity-container-identifiers' has value not permitted by a provisioning profile
Aug 29 22:12:58 unknown amfid[349] <Error>: entitlement 'aps-environment' has value not   permitted by a provisioning profile
Aug 29 22:12:58 unknown amfid[349] <Error>: entitlement 'com.apple.developer.ubiquity-kvstore-identifier' has value not permitted by a provisioning profile
Aug 29 22:12:58 unknown amfid[349] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile
Aug 29 22:12:58 unknown amfid[349] <Error>: entitlement 'keychain-access-groups' has value not permitted by a provisioning profile
Aug 29 22:12:58 unknown amfid[349] <Error>: entitlement 'aps-environment' has value not permitted by a provisioning profile
Aug 29 22:12:58 unknown amfid[349] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile 

I've been trying to figure out the problem for hours and have found no solutions. I was hoping someone out there could help narrow down a solution

Best Answer

Try removing all your provisioning profiles from Xcode (in the organizer) and the provisioning website if necessary, then follow this guide to create new ones.