简体   繁体   English

iOS 15 破坏了 NSPersistentCloudKitContainer 同步

[英]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.

相关问题 iOS15 B4 NSPersistentCloudKitContainer“账户暂时不可用”错误 - iOS15 B4 NSPersistentCloudKitContainer "Account Temporarily Unavailable" Error iOS15:NSPersistentCloudKitContainer:如何取消共享对象? - iOS15: NSPersistentCloudKitContainer: how to un-share objects? SwiftUI 中的预填充文本字段在 iOS 15 中被破坏 - Prefill textfields in SwiftUI is broken in iOS 15 切换 iCloud 同步 iOS15 / SwiftUI - Toggle iCloud Sync iOS15 / SwiftUI iOS 14 已更改(或损坏?)SwiftUI GeometryReader - iOS 14 has Changed (or broken?) SwiftUI GeometryReader 自iOS 5以来,iOS 6.1 NSDateFormatter已更改-解析中断? - iOS 6.1 NSDateFormatter has changed since iOS 5 - broken parsing? `[MKAnnotationView setBounds:]` 在 iOS SDK 15 上存在性能降级问题 - `[MKAnnotationView setBounds:]` has performance degragation problem on iOS SDK 15 iOS 15 模拟器 - 滚动时呈现损坏的集合视图单元格......? - iOS 15 Simulator - collection view cells rendering broken when scrolling...? iOS 15 核心数据与 CloudKit 公共数据库同步导致“自定义区域”不允许错误 - iOS 15 Core Data Sync with CloudKit public database resulted in `Custom Zone` not allowed error IOS13+ NSPersistentCloudKitContainer UIRefreshControl 如何刷新UITableView内容 - IOS13+ NSPersistentCloudKitContainer UIRefreshControl how to refresh UITableView content
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM