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.
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.