【问题标题】:Difference between com.apple.developer.icloud-container-identifiers and com.apple.developer.ubiquity-kvstore-identifiercom.apple.developer.icloud-container-identifiers 和 com.apple.developer.ubiquity-kvstore-identifier 之间的区别
【发布时间】:2021-06-27 23:56:55
【问题描述】:

有人知道这两个授权密钥的区别吗?

Apple 在不同地方的文档说两者都是为了同一件事:启用 iCloud 文档存储。

【问题讨论】:

    标签: ios swift core-data icloud cloudkit


    【解决方案1】:

    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中的完整示例。

    【讨论】:

      猜你喜欢
      • 2021-06-28
      • 2012-04-17
      • 2011-12-27
      • 2012-06-04
      • 2020-09-22
      • 1970-01-01
      • 2012-11-09
      • 1970-01-01
      相关资源
      最近更新 更多