Posts

Post not yet marked as solved
20 Replies
How the persistent history works and why it's needed? I read about the query generations, but fail to come up with a reasonable explanation why it prevents NSCloudKitContainer of syncing my objects. I was expecting to have the data persisted just by using NSPersistentContainer.There's a method named record(for) documented in NSCloudKitContainer, which would return CKRecord for a given NSManagedObject. It can be seen in NSCloudKitContainer definition, when browsing to it with xcode, but the compiler can't see it. This would have helped to even see which NSManagedObjects have corresponding CKRecord, but no luck. I asked this previously on the CloudKit subforum and my post was just silently deleted there.It's really hard to trust this not to lose/corrupt my data. If on local testing with a new app I (or you) can't explain why some records are not syncing, it's not very comforting.