iOS核心数据CloudKit Sync无法在AppStore上使用
我已经构建了一个应用程序,我希望在设备之间同步我的数据。当您使用核心数据检查CloudKit时,我从Xcode 13.4.1创建的默认代码开始。 当我从iPhone上的XCode运行该应用并iPad时,它都按预期同步。但是,当我使用AppStore中的版本时,它不再可行(使用同一手机和Apple ID)。当我从Xcode中覆盖具有相同版本的AppStore版本时,数据再次出现... CloudKit控制台永远不会显示任何数据。我想念什么?
I've built an app where I want t sync my data between devices. I've started from the default code created by Xcode 13.4.1 when you check CloudKit with Core Data.
When I run the app from Xcode on my iPhone and iPad it all syncs as expected. However, when I use the version from the AppStore it no longer works (using the same phone and Apple ID). When I overwrite the AppStore version with the same version from Xcode the data appears again...
CloudKit console never shows any data. What am I missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,这有点尴尬。典型的RTFM力矩。
您需要做的是将CloudKit容器模式部署到生产环境中。一旦我做到这一点,一切都开始尽其所能!
读取的手册: https://developer.com/documentation/cloudkit/managing_icloud_icloud_containers_with_with_the_the_cloudkit_database_app/deploying_an_icloying_an_icloud_cont_container_container_sschema_schema_schema
Ok, this is a little embarrassing. Typical RTFM moment.
What you need to do, is deploy the CloudKit container schema to the production environment. Once I did this everything started to work as it should!
The manual to read: https://developer.apple.com/documentation/cloudkit/managing_icloud_containers_with_the_cloudkit_database_app/deploying_an_icloud_container_s_schema