Sorix / CloudCore

Framework that enables syncing between iCloud (CloudKit) and Core Data
MIT License
153 stars 40 forks source link

nil values for entity properties #17

Closed eRGoon closed 6 years ago

eRGoon commented 6 years ago

I have some entities with non-optional properties. When I set up Cloudcore to sync my entities, it seems to work fine (but the error might already be there). Adding new Objects to Core Data and saving the changes also works fine.

Now when I delete the App and install it again, I'm waiting for the sync from iCloud to populate my database. However, I sometimes get validation errors from Core Data because the fetched records have nil values on non-optional properties. This seems a bit strange to me, because they should only be synced, if they were saved locally and therefor passed Core Data validation.

Sorix commented 6 years ago

Please post errors that you see in logs and attach your database model.

eRGoon commented 6 years ago
bildschirmfoto 2018-01-04 um 22 07 13

That's my database schema. Unfortunately I couldn't reproduce the issue anymore. I'll try and send you the logs but it was a Cocoa Error 1570.

Sorix commented 6 years ago

Please attach full logs (CloudCore reports entity and attributes where fail did occur) when they will be available and if you can reproduce it.

I'm closing that issue for now because of lack of information and reproduction troubles, please attach additional information here and I will reopen it.