用coredata里面添加了新的表,直接调试会报错
一大堆错误
...
reason = "The model used to open the store is incompatible with the one used to create the store"
reason = 用来打开存储的模型和用来创建存储的模型不兼
解决方法:
Remove the app from the simulator and perform a clean on your project. That should clear those issues up. Make sure that you are not running in the debugger when you delete the app or else it won't actually delete it properly.
把app从模拟器上删除,清理项目,重新调试。
详见stackoverflow :
The model used to open the store is incompatible with the one used to create the store
网友评论