iOS核心数据CloudKit Sync无法在AppStore上使用

发布于 2025-02-13 01:44:15 字数 228 浏览 2 评论 0原文

我已经构建了一个应用程序,我希望在设备之间同步我的数据。当您使用核心数据检查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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冰之心 2025-02-20 01:44:15

好的,这有点尴尬。典型的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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文