
1 xnth97 2022-05-11 06:23:46 +08:00 插个眼... 我没有用 NSPersistentCloudKitContainer ,用的 https://github.com/mentrena/SyncKit + CoreData ,也出现了 iOS 只和 iOS 同步、Mac 只和 Mac 同步的问题。我的 Mac app 是 MacCatalyst 的 |
2 WildCat 2022-05-11 06:44:53 +08:00 用你自己的账号,CloudKit dashboard 上,debug 环境看下自己的数据是什么样子的。 |
3 alexcding OP @xnth97 我看 overflow 也有类似情况, 但是没有解决方案. 有人建议 每次启动 app 重新删除一下 PersistentStore, 这样会重新同步. |
4 fatbobxu 2022-05-13 08:56:03 +08:00 是否已在 CloudKit console 上将数据结构部署到发行环境? |
6 justin2018 2022-05-13 14:49:34 +08:00 @xnth97 老哥 这个库 坑多吗 https://github.com/mentrena/SyncKit ~ |
7 xnth97 2022-05-13 15:05:01 +08:00 @justin2018 目前感觉还行,不过如果 CoreData 的话还是推荐直接 NSPersistentCloudKitContainer |
8 hstdt 2022-05-14 02:42:11 +08:00 via iPhone 如果用户愿意的话,可以让用户帮忙连 console 看 cloudkit 的日志,以及要升级到最新系统。这个库尤其是在 iOS 15 上是有问题的( 14 都比 15 好,15 低版本同步问题最多,后面好歹修了一些,mac 倒是没啥问题)。我这里还有个内存跳 6gb 内存然后同步中止的问题还在等苹果修 |