I am have an entity in core data and I try to update it from two different context. I am storing managedObjectID of my managed object which I need to update as it is thread
As mentioned by @Husam in comment, try to set MergePolicy on ManagedObjectContext as:
MergePolicy
ManagedObjectContext
managedObjectContext.mergePolicy = NSMergeByPropertyObjectTrumpMergePolicy
Hope this help!