magicalpanda / MagicalRecord

Super Awesome Easy Fetching for Core Data!
Other
10.8k stars 1.79k forks source link

ICloudKit Framework integration With Magical Record #1382

Open iChhaya10 opened 3 years ago

iChhaya10 commented 3 years ago

I have an existing project in Objective C with Magical Record Library used for core data. Now I need to make this app data sync to multiple iOS devices for which I added iCloudkit Framework and need to use NSPersistentCloudKitContainer. I tried to change root context of Magical record class to NSPersistentCloudKitContainer view context. But it crashes with error: NSInternalInconsistencyException', reason: 'Context already has a coordinator; cannot replace.'

Any one has any idea how to add NSPersistentCloudKitContainer viewcontext in Magical Record.