Nick ONeill
Nick ONeill

Reputation: 7381

Entitlement has value not permitted by a provisioning profile error

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

Upvotes: 12

Views: 24628

Answers (12)

Ben
Ben

Reputation: 5172

somehow had get-task-allow and keychain-access-groups activated.

Was stuck on this for a test flight to external users, the version had been approved by apple (!). Result : no one could install it.

We felt pretty happy about it, and took a long time to understand what was going wrong.

Upvotes: 0

Sten Petrov
Sten Petrov

Reputation: 11040

In my case I had to delete all provisioning profiles from Keychain (searched for iPhone, deleted all), remove the account from xcode and then log back in xcode (Preferences | Accounts)

Upvotes: 0

Nikolay Shubenkov
Nikolay Shubenkov

Reputation: 3223

In my case error appeared for enterprise application.

  1. Remove your app from device
  2. Remove your app provision profile from device
  3. Install app again
  4. Profit

here you can see how to manage provision profile http://applesliced.com/ask/how-do-i-remove-provisioning-profiles-from-my-iphone

it says Open Settings -> General -> Profiles

Upvotes: 0

HatAndBeard
HatAndBeard

Reputation: 1436

I had this error during an OTA install because I didn't add the Keychain Sharing Entitlement to my Target's Capabilities.

Upvotes: 0

arlomedia
arlomedia

Reputation: 9051

In my case, the problem was that I had the right provisioning profile selected in Build Settings > Provisioning Profiles, but didn't have the right certificate selected in Build Settings > Code Signing Identity.

Upvotes: 1

Fabio Napodano
Fabio Napodano

Reputation: 1249

this is happening quite often recently, when archiving apps from different projects in XCode 5.1

I usually solve it by:

  • closing XCode,
  • deleting all certificates from my Keychain Access
  • double clicking in Finder on the .cer file I need
  • open XCode and the related project
  • recheck signing options in the project
  • rebuild the archive

Upvotes: 2

d1jhoni1b
d1jhoni1b

Reputation: 8025

In case you are using Test flight (http://testflight.com) it's related with the provisioning profiles on your Mac, you see them via "Organizer" delete all of them and try to Build/Archive your apps with only certificate (the one you want to deploy)

Upvotes: 0

Matt
Matt

Reputation: 430

My issue was that in Product>Scheme>Edit Scheme, the Archive task was set to use the Debug configuration, not the release/distribution configuration.

Upvotes: 0

DBD
DBD

Reputation: 23213

I just got this error myself on an enterprise application. It was a beta release.

I had registered "Development" for Push Notification, but had never setup the "Production" version with the cert and even though it was a beta, it was a true production deploy with a limited user group.

(for any other "searchers" who might find this question)

Upvotes: 1

ghr
ghr

Reputation: 516

This just happened to me because I signed something with an App Store certificate rather than an ad-hoc certificate. Choosing the correct certificate and then re-archiving fixed the issue.

Upvotes: 8

Pontus Granstr&#246;m
Pontus Granstr&#246;m

Reputation: 1089

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.

Upvotes: 11

Vivek2012
Vivek2012

Reputation: 772

Your Machine Key Chain Has not that project Provision Profile

Do The Staps Below ..

#1 Just download the provision profile from developer.apple.com
#2 First modify it and add your current device again ..
#3 Check out your info.plist in your project 
#4 provision profile name and name in info.plist should mach with each other ..
#5 now try i hope u will get your project Done.

Upvotes: 0

Related Questions