修改core data的data model导致的错误

现象:

  程序运行出现如下错误信息:

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

原因 :修改了Data Model文件,增加了新的Entity,包括Attribute属性、Relationship关系等等。

解决办法:

      不管是模拟器还是真机,把app删除重新运行即可。


本文出自 “优美的swift” 博客,谢绝转载!

你可能感兴趣的:(Data,core,修改错误)