iOS/Xcode异常:reason = “The model used to open the store is incompatible with the one used to create the store”

reason=The model used to open the store is incompatible with the one used to create the store

出现上述异常的原因是 :我们修改了Data Model文件,增加了新的Entity,包括Attribute属性、Relationship关系等等,没有及时更新信息,导致文件冲突

解决方法:

在控制台找到Documents路径

 

在Finder中打开路径

 

删除Documerts文件夹下的文件 然后运行程序即可

 

 

 

原文地址:https://www.cnblogs.com/crazygeek/p/5466284.html