NSMergeConflict on iOS7

后端 未结 6 2054
时光取名叫无心
时光取名叫无心 2021-02-06 01:29

I have updated my app to support iOS 7 and have been faced with the problem that on one of screens in my [context save]; I get the following error:

         


        
6条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-06 02:03

    According to apple's documentation

    NSManagedObjectMergeError = 133020

    This Error code to denote that a merge policy failed—Core Data is unable to complete merging.

    Is there any merge policy in your code? Please try NSMergeByPropertyObjectTrumpMergePolicy.

    [self.context setMergePolicy:NSMergeByPropertyObjectTrumpMergePolicy];
    

提交回复
热议问题