Open VivoEx opened 6 years ago
@VivoEx , I was facing the same error. If you are supporting light weight database migration then please compare your db versions, in my case I have added one additional attribute in DB but forgot to change the DB version (xcdatamodel). So, as a solution I just created new .xcdatamodel version for that additional attribute. That might help to resolve your issue. Thanks.
Make sure your model has at least one entity.
Failed to create NSManagedObjectModel. 2018-02-19 00:19:35.505847+0530 XXX[88475:4124781] [error] error: -addPersistentStoreWithType:EncryptedStore configuration:(null) URL:file:///XXX.sqlite options:{ EncryptedStorePassphrase = Passcode; NSInferMappingModelAutomaticallyOption = 1; NSMigratePersistentStoresAutomaticallyOption = 1; } ... returned error Error Domain=EncryptedStoreErrorDomain Code=6001 "(null)" UserInfo={EncryptedStoreErrorMessage=Missing old model, cannot check database} with userInfo dictionary { EncryptedStoreErrorMessage = "Missing old model, cannot check database"; }
Getting the above error consistently when I quit and relaunch, open the application which actually clears off all the data in the db and is trying to load fresh data after relaunch... seemingly a new store is getting created ? Could someone help with this please ?