I have an old core data version with Allows external storage
in Binary data. And i have created a new one where Allows external storage
was unchecked. When i tried to launch my app i got an error:
Unresolved error
Error Domain=NSCocoaErrorDomain Code=134140 "The operation couldn’t be completed. (Cocoa error 134140.)" UserInfo=0xbd5cd20 {reason=Can't find or automatically infer mapping model for migration, destinationModel=...
Then I have created a new file in my project - Model.xcmappingmodel
. I have selected source data model and target data model.
After that i see
NSPersistentStoreCoordinator error: NSPersistentStoreCoordinator _coordinator_you_never_successfully_opened_the_database_schema_mismatch