I am coding a new version of my app and it has a new store version. I add a new version of the model and set the Model version of the new model in the Inspector view of the model.
I added an options dictionary to addPersistentStoreWithType (as explained in the documentation of Lightweight migration)...
NSDictionary *options = @{NSMigratePersistentStoresAutomaticallyOption: @YES, NSInferMappingModelAutomaticallyOption: @YES};
But I am receiving the following error...
Error Domain=NSCocoaErrorDomain Code=134100 "The managed object model version used to open the persistent store is incompatible with the one that was used to create the persistent store.
Please suggest what I should do.