Core Data + Cloudkit not synching

I have a Core Data + Couldkit App where any changes made on other device is not synched. I had to call the fetch method again refresh the data.

I even added the necessary lines,

Code Block
let container = NSPersistentCloudKitContainer(name: "myappcontainername")
container.viewContext.automaticallyMergesChangesFromParent = true

The following are the CoreData logs after making a change,

Code Block
CoreData+CloudKit: -[NSCloudKitMirroringDelegate finishedAutomatedRequestWithResult:](2119): Finished request '<NSCloudKitMirroringExportRequest: 0x6> -UUID' with result: <NSCloudKitMirroringResult: 0x> success: 1 madeChanges: 1 error: (null)


What else should I be doing to make this work?

That log implies exports are working. What about imports? How long did you wait?
Core Data &#43; Cloudkit not synching
 
 
Q