【发布时间】:2021-06-27 23:56:55
【问题描述】:
有人知道这两个授权密钥的区别吗?
Apple 在不同地方的文档说两者都是为了同一件事:启用 iCloud 文档存储。
【问题讨论】:
标签: ios swift core-data icloud cloudkit
有人知道这两个授权密钥的区别吗?
Apple 在不同地方的文档说两者都是为了同一件事:启用 iCloud 文档存储。
【问题讨论】:
标签: ios swift core-data icloud cloudkit
com.apple.developer.icloud-container-identifiers 的值指定您的应用在生产中使用的 iCloud 容器 ID。
不要与 com.apple.developer.icloud-container-development-container-identifiers 的值混淆,它指定您的应用在开发/暂存中使用的 iCloud 容器 ID。
一些 iCloud 容器用于键值存储,其他 iCloud 容器用于文档存储,其他用于核心数据存储等。因此,com.apple.developer.ubiquity-kvstore-identifier 用于指定仅用于键值的容器 ID存储。
这个例子应该说明:
<key>com.apple.developer.ubiquity-kvstore-identifier</key>
<string>4ZX4Z3MVHG.*</string>
<key>com.apple.developer.icloud-container-identifiers</key>
<array>
<string>iCloud.com.appleseedinc.MyProject</string>
<string>iCloud.com.appleseedinc.container1</string>
</array>
查看relevant Apple Tech Note中的完整示例。
【讨论】: