CoreData报错:The model used to open the store is incompatible with the one used to create the store
来源:互联网 发布:网络目标人群分析 编辑:程序博客网 时间:2024/04/27 13:59
今天在调试coredata,出现了这个异常:
在推酷看到解决方法:这个错误通常是我们修改了DataModel文件,增加了新的Entity,包括Attribute属性、Relationship关系等等导致的,解决方法很简单:
Step1:使用Data Model数据模型的版本属性
- 在项目导航栏中,选择Data Model 文件;
- 选择 Editor > Create Model Version 菜单项;
- 在对话框中,输入Data Model文件的名称,并点击Save按钮;
Step2:设置 Data Model的当前版本号:
- 在项目导航栏中,选择Data Model文件;
- 在File inspector 面板窗口,找到Versioned Core Data Model 节点;
- 从弹出菜单中,选择当前模板版本号;
Step3:删掉APP(从模拟器中删掉:HOME-长按-删除),重新编译运行即可。
原文出处:http://www.tuicool.com/articles/A7vmEn
0 0
- 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
- 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
- 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
- CoreDataErrorThe 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
- xcode 编译报错The identity used to sign the executable is no longer valid”
- 真机调试报错:The identity used to sign the executable is no longer valid
- 打开word中的excel object进行编辑的时候报错:The program used to create this object is Excel.
- 131.Which naming method uses the tnsnames.ora file to store the connect descriptor used by the clien
- 解决gradle升级报错 This version of Android Studio is incompatible with the Gradle Plugin used
- Android Studio报错:This version of Android Studio is incompatible with the Gradle Plugin used处理
- Xcode报The identity used to sign the executable is no longer valid
- webform报错:The HTTP verb POST used to access path * is not allow的解决办法
- This version of android studio is incompatible with the gradle version used.Try disabling the instan
- Convert Sorted List to Binary Search Tree -- leetcodeGiven a singly linked list where elements are s
- Saruman's_Army
- ARM开发板上iconv_open("utf-8", "gb2312") 调用失败的解决方法
- 史上最全选择本地图片和拍照上传,超简单解决获取不到图片问题
- diff patch用法
- CoreData报错:The model used to open the store is incompatible with the one used to create the store
- 第八周项目四--String类的构造
- 路径中 斜杠/和反斜杠\ 的区别
- mysqli_fetch_array() 报错
- android 线程实现异步网络数据获取
- java内存溢出
- 基于XMPP协议的手机多方多端即时通讯方案
- [镜像制作]Ubuntu设置iserver服务开机自启动
- 制作flash动画心得