CoreData iCloud Migration “loses” data when more than one device is involved

Recently, I had some serious problems updating my application. Numerous users complained about dataloss after they migrated the new version.

After many hours, I'm still not sure what happened, but I have a theory that I would like to confirm.

in the Apple documentation says:

Migration and iCloud

Changes to the repository are recorded and saved independently for each version of the model that is associated with this NSPersistentStoreUbiquitousContentNameKey. A persistent store configured with this NSPersistentStoreUbiquitousContentNameKey only synchronizes data with the data store of another device if the model versions match.

If you transfer a persistent store configured with the NSPersistentStoreUbiquitousContentNameKey parameter to a new version of the model, the history of changes coming from the current device will also be transferred and then merged with any other devices configured with this new version of the model

Does this mean that when I have more than one device and transfer the first. All NOT data originating from this device is “lost” because the model versions no longer correspond until the other device is also updated to the latest version, and its data and change history will not be transferred to the new version of the model.

Because it seems to be one landscape where I can replicate the problem. Is this really so? any help and understanding is appreciated ...

+3
1

. , . "" , . .

, , , .

+2

All Articles