Xcode错误-配置文件不包含com.apple.developer.icloud-container-environment授权

时间:2019-10-31 15:51:00

标签: ios xcode icloud archive ios-provisioning

我们已在应用程序中启用了iCloud功能,并启用了以下服务,

  1. 键值存储
  2. iCloud文档

但是,当尝试通过存档导出构建时,它向我抛出了以下错误,

  

个人资料不包含com.apple.developer.icloud-container-environment权利。

我尝试将“权利”文件中的com.apple.developer.icloud-container-environment entitlement设置为ProductionDevelopment,但也没有帮助。

有什么线索可以解决此错误吗?

enter image description here enter image description here enter image description here

3 个答案:

答案 0 :(得分:2)

这是我的固定方法:

  1. 我在CloudKit仪表板上(在Xcode的“签名和功能”的iCloud部分中)创建了一个iCloud容器。

  2. 我将新创建的容器分配给了我的应用程序(Developer Website > Certificates, Identifiers & Profiles > Identifiers>我的应用程序ID>功能> iCloud>编辑按钮)并保存了应用程序ID配置。

  3. 然后,我为此应用程序ID创建了一个新的App Store配给配置文件,并在将其上传到Xcode中时用来对其进行手动签名。

答案 1 :(得分:1)

尝试以下步骤,可能会对您有所帮助

  • 转到apple dev portal
  • 打开证书,标识符和配置文件部分
  • 手动编辑/创建现有的配置文件
  • 从门户网站下载它,并对其进行唯一命名,以便您区分 从生成的Xcode(即“ MyNewProfile”
  • 导出存档并分配 MyProfile

答案 2 :(得分:1)

对我来说,诀窍是确保它大写:根据 Apple 的说法,“生产”与“生产”不同。

如图所示:

https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_icloud-container-environment