ios - cloudkit 数据未显示在提交的应用程序 iOS 8.1 中

标签 ios iphone icloud cloudkit

这是交易。我的应用程序使用 Defualt Public CloudKit 容器来提供一些图像。该应用程序在我的 iPhone 和 iOS 8.0 上的不同模拟器上运行良好。我提交了我的应用程序,它现在在应用程序商店中,但 Cloudkit 功能不适用于从应用程序商店下载的应用程序。

在代码或设置中有什么我应该做的吗?这是我的 Xcode 设置。

enter image description here

最佳答案

好吧,我发现我哪里错了。我把它放在这里是为了其他人。 我们需要在 CloudKit 仪表板中将开发环境部署到生产环境。

The Development and Production Environments

CloudKit provides separate development and production environments for your record types and data. The development environment is a more flexible environment that is available only to members of your development team. When your app adds a new field to a record and saves that record in the development environment, the server updates the schema information automatically. You can use this feature to make changes to your schema during development, which saves time. One caveat is that after you add a field to a record, the data type associated with that field cannot be changed programmatically. To change a field’s type, you must delete the field in CloudKit Dashboard and add it again with the new type.

Prior to deploying your app, you migrate your schema and data to the production environment using CloudKit Dashboard. When running against the production environment, the server prevents your app from changing the schema programmatically. You can still make changes with CloudKit Dashboard but attempts to add fields to a record in the production environment result in errors.

Note: iOS Simulator works only with the development environment. When you are ready to test your app in a production environment, do so from a device. During development, Xcode automatically points your app to the development environment. Before you ship your app, configure your app using the distribution workflow. In this workflow, Xcode lets you choose whether you want to target the development or production environment and adds the com.apple.developer.icloud-container-environment entitlement to your app with the value you selected. Prior to shipping, be sure to configure your app for the production environment. Apps that target the development environment will be rejected by the App Store.

关于ios - cloudkit 数据未显示在提交的应用程序 iOS 8.1 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26484913/

相关文章:

iphone - iOS开发:为什么我的链接器看不到我的类(class)?

ios - WKWebKit View 在 iOS 10 上重叠状态栏,但在 iOS 11 上不重叠

iphone - IOS 版本和 HTML5 视频支持

ios - iPhone 5 和 iPhone 6 @2x 图像问题

iphone - 为什么状态栏旋转而 View 保持纵向

ios - 无法访问/导入在 iOS 11 文档浏览器中选取的 iCloud 文件的内容

ios - 如何删除 NSUserDefault 中的一堆 NSData

ios - 如何阻止 iOS 7 控制中心控制音乐应用程序?

ios - ubiquityIdentityToken 与 CKContainer accountStatusWithCompletionHandler

ios - 如何按修改日期对 UIDocument 的 icloud NSMetadataQuery 结果进行排序?