core-data icon indicating copy to clipboard operation
core-data copied to clipboard

CoreData Error: Invalid generation token: this persistent store coordinator does not have any of the referenced stores

Open manikal opened this issue 6 years ago • 0 comments

I'm getting this CoreData error in my crash reporter but I'm unable to reproduce it.

The crashing lines:

The error message:

Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=134060 "A Core Data error occurred." UserInfo={Reason=Invalid generation token: this persistent store coordinator does not have any of the referenced stores}: file /BuildRoot/Library/Caches/com.apple.xbs/Sources/swiftlang_Fall2018/swiftlang_Fall2018-1000.11.42/src/swift/stdlib/public/core/ErrorType.swift, line 184

I would like to decipher error message. Does Invalid generation token refers to NSQueryGenerationToken? Is the error part of conflict resolution process?

I guess the only thing different in my implementation is that I didn't use custom merge policy but mergeByPropertyStoreTrumpMergePolicyType.

manikal avatar Feb 06 '19 14:02 manikal