[英]iOS 15 has broken NSPersistentCloudKitContainer sync
I have an existing app in the App Store that has been using an NSPersistentCloudKitContainer since iOS13 with no issues.我在 App Store 中有一个现有的应用程序,它自 iOS13 以来一直使用 NSPersistentCloudKitContainer,没有任何问题。 My models are very simple, an
Article
model and a Tags
model that is a many-to-many relationship on Article
.我的模型非常简单,一个
Article
模型和一个Tags
模型,它们是对Article
的多对多关系。 Since iOS15 (I've also tried 15.1 beta) the Tags
records are no longer downloaded, they are however uploaded when created.由于 iOS15(我也尝试过 15.1 测试版)不再下载
Tags
记录,但它们会在创建时上传。 What happens instead is that all articles will be downloaded and all tags will be missing.相反,所有文章都将被下载并且所有标签都将丢失。 Downgrading and going through the process on iOS14 I'm able to verify that this did previously work as intended - when opening the app all
Articles
and all Tags
are downloaded.在 iOS14 上降级并完成该过程我能够验证这之前是否按预期工作 - 打开应用程序时,所有
Articles
和所有Tags
都已下载。
I eventually found a config issue in one of my Models which was somehow preventing the child relation from being imported, specifically in iOS15.我最终在我的一个模型中发现了一个配置问题,它以某种方式阻止了子关系的导入,特别是在 iOS15 中。 I'm still not entirely sure why it was working prior to that - perhaps I'd inadvertently exploited a bug that was fixed in iOS15.
我仍然不完全确定为什么它在此之前有效 - 也许我无意中利用了 iOS15 中修复的错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.