CoreDataErrorThe model used to open the store is incompatible with the one used to create the store
2011-08-09 21:21
621 查看
You created some entities with some attributes and wrote some code
Launched the app, probably added some content
Quit the app and added/changed some more entities with attributes
You probably launched the app again and now it's giving you the error
The reason for this is because your new managed object model is trying to use older version of storage (the one first time created when you launched the app).
The quick and dirty fix would be to remove the storage file (somewhere in ~/Library/Application Support/YOUR_APP/) and to launch your app again.
For future reference - if you release an app and in next release the app has changed managed object model - you have to write migrations for it. All this and more is covered in core data programming cookbook in apple documentation.
Launched the app, probably added some content
Quit the app and added/changed some more entities with attributes
You probably launched the app again and now it's giving you the error
The reason for this is because your new managed object model is trying to use older version of storage (the one first time created when you launched the app).
The quick and dirty fix would be to remove the storage file (somewhere in ~/Library/Application Support/YOUR_APP/) and to launch your app again.
For future reference - if you release an app and in next release the app has changed managed object model - you have to write migrations for it. All this and more is covered in core data programming cookbook in apple documentation.
相关文章推荐
- CoreDataErrorThe model used to open the store is incompatible with the one used to create the store
- coreData-reason = "The model used to open the store is incompatible with the one used to create the
- The model used to open the store is incompatible with the one used to create the store
- The model used to open the store is incompatible with the one used to create the store
- CoreData报错:The model used to open the store is incompatible with the one used to create the store
- The model used to open the store is incompatible with the one used to create the store
- The model used to open the store is incompatible with the one used to create the store
- The model used to open the store is incompatible with the one used to create the store错误
- The model used to open the store is incompatible with the one used to create the store
- Core Data异常: model used to open the store is incompatible with the one used to create the store
- CoreData修改了数据模型报错 The model used to open the store is incompatible with the one used to create the store
- coreData报错:The model used to open the store is incompatible with the one used to create the store
- mysql load data infile 文件没有找到(can't get file stat) ERROR 1148: The used command is not allowed with
- Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try
- Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try d
- AS错误-Error running app: This version of Android Studio is incompatible with the Gradle Plugin used.
- Knockout is a JavaScript library that helps you to create rich, responsive display and editor user interfaces with a clean underlying data model.
- Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try
- Error running app: This version of Android Studio is incompatible with the Gradle Plugin used.
- Error running example: This version of Android Studio is incompatible with the Gradle Plugin used.解决