Sorix / CloudCore

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

Inherited Entity Sync, maybe bug? #44

Open dududouniwaner opened 6 years ago

dududouniwaner commented 6 years ago

Hi there, thanks all your efforts for this framework. Here I may test out a bug? or something I missed in dealing with this?

This is problem happened by followed detail: Step 1: I had 3 entities named B, C, D, all of them were inherited from entity A. In addition, a test entity E was also added. Step2: By using CloudCore Framework, I added recordData/recordID attributes in entity E and parent entity A. When I run the app, entity E was sync normal, but nothing happened to Entity B, C, D, E. Step3: Then I delete recordData/recordID attributes from parent entity A, and add them to B, C, D. When App launched, it crashed, and read: Coredata error, cannot find attributed. Deleted recordData/recordID attributes from parent entity A, B, C, D, app crashed with the same error all the same. Step4: Then I tried to migrate data model version. Delete recordData/recordID attributes from parent entity A, and add them to B, C, D, it reads conflict attributes with old model version.

Maybe this situation is rare, but it really happens to me. I even thought this was a dead cycle. Do you have any advices to fix this? Your help would be highly appreciated.