We are developing an App that uses iCloud to store CoreData file and shares this data between an iPhone and an iPad. When receiving a data update done on the other device, through NSPersistentStoreDidImportUbiquitousContentChangesNotification, sometimes, the update is empty even though there was a valid change on the other device to cause the update to be sent.
$0 = 0x1f5c64e0 NSConcreteNotification 0x1f5c64e0 {name = com.apple.coredata.ubiquity.importer.didfinishimport; object = <NSPersistentStoreCoordinator: 0x1f553130>; userInfo = {
deleted = "{(\n)}";
inserted = "{(\n)}";
updated = "{(\n)}";
}}
This is not happening always, it seems to be absolutely random but when happens both ManagedObjects (from iPhone and iPad) have different data.
Does anybody know why is this happening and whats the meaning of receiving this collections empty? Is this a bug or something?
UPDATE AFTER CONTACTING APPLE
Well, I contacted Apple through the DTS service (you have 2 technical support requests every year included with your subscription) and after pretty much sending them the same text I wrote here I received this answer:
Hello Jordi,
Thank you for contacting Apple Developer Technical Support. Our engineers have reviewed your request and have determined that this would be best handled as a bug report.
Please submit a complete bug report regarding this issue using the Bug Reporter tool at http://bugreport.apple.com.
So, I'll start looking for alternatives... If I find any I'll keep you updated :(