Skip to content

NSMergeConflict for NSManagedObject #21

@Nyoho

Description

@Nyoho

なんか

Thread 1: Fatal error: Failure to save main context: Error Domain=NSCocoaErrorDomain Code=133020 "Could not merge changes." UserInfo={conflictList=(
    "NSMergeConflict (0x600001c86c00) for NSManagedObject (0x16shinsuu) with objectID '0x16shinsuu <x-coredata://3D??????-????-????-????-??????????/User/p37>' with oldVersion = 957 and newVersion = 959 and old object snapshot = {\n    name = hatenaname;\n} and new cached row = {\n    name = hatenaname;\n}",
    "NSMergeConflict (0x600001c86540) for NSManagedObject (0x6000

というエラーが2度も出てクラッシュしたのでメモ。

ググると、これをやるとよさそう < ios - NSPersistentContainer concurrency for saving to core data - Stack Overflow https://stackoverflow.com/questions/42733574/nspersistentcontainer-concurrency-for-saving-to-core-data

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions