ios 权利具有供应配置文件错误不允许的值
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7239017/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Entitlement has value not permitted by a provisioning profile error
提问by Nick ONeill
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.
在过去几周测试我的应用程序后,我们终于尝试将应用程序提交到应用程序商店。在提交之前,我想设置我的生产推送通知。我去安装了我的生产配置文件,将它设置在 XCode 构建区域的代码标识符中,并启动了应用程序,希望生产推送通知能够正常工作。
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
几个小时以来,我一直试图找出问题所在,但没有找到任何解决方案。我希望有人可以帮助缩小解决方案的范围
采纳答案by Pontus Granstr?m
Try removing all your provisioning profiles from Xcode (in the organizer) and the provisioning website if necessary, then follow this guideto create new ones.
如有必要,请尝试从 Xcode(在管理器中)和配置网站中删除所有配置文件,然后按照本指南创建新配置文件。
回答by ghr
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.
这只是发生在我身上,因为我使用 App Store 证书而不是临时证书签署了一些东西。选择正确的证书,然后重新存档解决了该问题。
回答by Fabio Napodano
this is happening quite often recently, when archiving apps from different projects in XCode 5.1
最近经常发生这种情况,在 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
- 关闭 XCode,
- 从我的钥匙串访问中删除所有证书
- 在 Finder 中双击我需要的 .cer 文件
- 打开 XCode 和相关项目
- 重新检查项目中的签名选项
- 重建档案
回答by arlomedia
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.
就我而言,问题是我在构建设置 > 配置文件中选择了正确的配置文件,但在构建设置 > 代码签名标识中没有选择正确的证书。
回答by DBD
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)
(对于可能会发现此问题的任何其他“搜索者”)
回答by Matt
My issue was that in Product>Scheme>Edit Scheme, the Archive task was set to use the Debug configuration, not the release/distribution configuration.
我的问题是在产品>方案>编辑方案中,存档任务设置为使用调试配置,而不是发布/分发配置。
回答by d1jhoni1b
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)
如果您使用的是测试飞行 ( http://testflight.com),它与 Mac 上的配置文件相关,您可以通过“组织者”看到它们,删除所有这些文件,并尝试仅使用证书(您要部署的一个)
回答by HatAndBeard
I had this error during an OTA install because I didn't add the Keychain Sharing Entitlement to my Target's Capabilities.
我在 OTA 安装期间遇到此错误,因为我没有将钥匙串共享权利添加到目标的功能中。
回答by Nikolay Shubenkov
In my case error appeared for enterprise application.
在我的情况下,企业应用程序出现错误。
- Remove your app from device
- Remove your app provision profile from device
- Install app again
- Profit
- 从设备中删除您的应用
- 从设备中删除您的应用程序配置文件
- 重新安装应用
- 利润
here you can see how to manage provision profile http://applesliced.com/ask/how-do-i-remove-provisioning-profiles-from-my-iphone
在这里你可以看到如何管理配置文件 http://applesliced.com/ask/how-do-i-remove-provisioning-profiles-from-my-iphone
it says Open Settings -> General -> Profiles
它说打开设置-> 常规-> 配置文件
回答by Sten Petrov
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)
就我而言,我必须从钥匙串中删除所有配置文件(搜索 iPhone,全部删除),从 xcode 中删除帐户,然后重新登录 xcode(首选项 | 帐户)