开发者

Entitlement has value not permitted by a provisioning profile error

开发者 https://www.devze.com 2023-04-01 04:36 出处:网络
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 i

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


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.


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.


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


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)


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.


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.


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


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)


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


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


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)


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消