Xcode 8:您的帐户没有足够的权限来修改容器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/40596802/
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
Xcode 8: Your account does not have sufficient permissions to modify containers
提问by etayluz
回答by AKun
I also faced this issue in XCode 8.3.3 (8E3004b). I just went to Project Settings→ Capabilitiestab, then toggled iCloud off and on. Once I went back to the Generaltab, the errors were gone.
我也在 XCode 8.3.3 (8E3004b) 中遇到过这个问题。我刚刚转到项目设置→功能选项卡,然后关闭和打开 iCloud。一旦我回到“常规”选项卡,错误就消失了。
回答by etayluz
This seems like it may be a bug with XCode 8. To resolve this, I unchecked the "automatically manage signing" checkbox in the of my target's General settings. I then archived my project by manually setting the provisioning profiles. After that succeeded, I went back and again checked the "automatically manage signing" checkbox and it stopped complaining with errors that made no sense.
这似乎是 XCode 8 的一个错误。为了解决这个问题,我取消了目标的常规设置中的“自动管理签名”复选框。然后我通过手动设置配置文件来归档我的项目。成功后,我回去再次检查“自动管理签名”复选框,它停止抱怨毫无意义的错误。
回答by dchappelle
Just had this issue with XCode 8.3.2 after we enabled iCloud Capabilities and the entitlements changed. We use automatic signing - xcode managed profile. Going into Xcode -> Preferences -> Download All Profiles wouldn't fix the problem UNTIL we temporarily made team members Admin and repeated the process. At that point XCode realized the new provisioning profile and the problem was solved.
在我们启用 iCloud 功能并且权利发生变化后,XCode 8.3.2 刚刚遇到了这个问题。我们使用自动签名 - xcode 托管配置文件。进入 Xcode -> Preferences -> Download All Profiles 不会解决问题,直到我们暂时让团队成员成为 Admin 并重复该过程。那时 XCode 实现了新的配置文件,问题就解决了。
回答by Suthan M
Just goto Xcode capabilities section and see if any of the capability showing error then disable that and enable again. Then come to your Signing section in General. The issues will go now
只需转到 Xcode 功能部分,看看是否有任何功能显示错误,然后禁用它并再次启用。然后来到您的一般签名部分。问题将消失
回答by sukesh
I faced this issue in XCODE Version 8.3.3 (8E3004b). To resolve this go to project settings. In capabilities tab -> iCloud -> containers. Verify whether valid iCloud containers are selected and you have permission to access these containers. This should resolve the issue.
我在 XCODE 版本 8.3.3 (8E3004b) 中遇到过这个问题。要解决此问题,请转到项目设置。在功能选项卡 -> iCloud -> 容器中。验证是否选择了有效的 iCloud 容器以及您是否有权访问这些容器。这应该可以解决问题。
回答by Nicronaide
I was having the same problem too after I added a new device with Xcode 8.3.3 (same issue present in Xcode beta 9.0 as well). My Apple Developer account wasn't an administrator at the time either. I tried deleting my provisioning profiles and re-downloading them but that didn't work. I tried manually downloading and installing the provisioning profiles from developer.apple.com, but that didn't work either. I had my Apple Developer account made an Administrator following advice from dchappelle https://stackoverflow.com/a/43812123/5760384
and voila! The provisioning errors went away. (I'd reply to his post, but I don't have enough reputation.)
在使用 Xcode 8.3.3 添加新设备后,我也遇到了同样的问题(Xcode beta 9.0 中也存在同样的问题)。我的 Apple Developer 帐户当时也不是管理员。我尝试删除我的配置文件并重新下载它们,但这没有用。我尝试从 developer.apple.com 手动下载和安装配置文件,但这也不起作用。根据 dchappelle 的建议,我让我的 Apple Developer 帐户成为管理员https://stackoverflow.com/a/43812123/5760384
,瞧!配置错误消失了。(我会回复他的帖子,但我没有足够的声誉。)
Full text of error:
错误全文:
Your account does not have sufficient permissions to modify containers. Provisioning profile "myApp" doesn't include the currently selected device "myDevice". Code signing is required for product type 'Application' in SDK 10.3
您的帐户没有足够的权限来修改容器。配置文件“myApp”不包括当前选择的设备“myDevice”。SDK 10.3 中的产品类型“应用程序”需要代码签名
回答by Jof Arnold
Another potential solution, depending on your needs, is to upgrade to the paid version of the Apple Developer Program; this gives you access to the iCloud container features. Once paid and activated (the membership application takes a few hours to go through if you're an individual... sometimes a few days if you're a business) you'll need to enable iCloud features via the online dashboard or via XCode as per Apple's instructions. You may then have to restart XCode.
根据您的需要,另一个可能的解决方案是升级到 Apple Developer Program 的付费版本;这使您可以访问 iCloud 容器功能。支付并激活后(如果您是个人,会员申请需要几个小时才能完成……如果您是企业,有时需要几天),您需要通过在线仪表板或 XCode 启用 iCloud 功能按照苹果的说明。然后您可能必须重新启动 XCode。
回答by Andrew Bogaevskyi
I had the same issue with Xcode 9.2. But in my case, the problem was in Keychain: my dev certificate was saved into loginkeychain by default. I was able to build an app on a device only when I moved it to Systemkeychain.
我在 Xcode 9.2 上遇到了同样的问题。但就我而言,问题出在钥匙串中:我的开发证书默认保存到登录钥匙串中。只有当我将它移动到系统钥匙串时,我才能在设备上构建应用程序。
So the steps are next:
所以接下来的步骤是:
- Open Keychain Access
- Open loginkeychain (you can see the list of all keychains on the left top corner of the window)
- Drag and drop your dev/distribution certificate into Systemkeychain
- You may need to input password.
- 打开钥匙串访问
- 打开登录钥匙串(您可以在窗口的左上角看到所有钥匙串的列表)
- 将您的开发/分发证书拖放到系统钥匙串中
- 您可能需要输入密码。
PS: while doing this steps you also may need to unlock locks on the keychains.
PS:在执行此步骤时,您可能还需要解锁钥匙串上的锁。
回答by Steven K
I had this problem and I fixed it by logging in to the iTunes development portal and accepted the new Terms & Conditions. I was basically locked out until these were accepted.
我遇到了这个问题,我通过登录 iTunes 开发门户并接受新的条款和条件来修复它。在这些被接受之前,我基本上被锁定了。