在使用对利用了coredata的项目中假如要对coredata中的.xcdatamodeld文件进行版本更新则需要将原先虚拟机下面对应app文件中的数据库文件删除,或者在源码中干脆换一个数据库文件的名字,否则会引起异常,异常的提示输出为:
This NSPersistentStoreCoordinator has no persistent stores. It cannot perform a save operation
在使用对利用了coredata的项目中假如要对coredata中的.xcdatamodeld文件进行版本更新则需要将原先虚拟机下面对应app文件中的数据库文件删除,或者在源码中干脆换一个数据库文件的名字,否则会引起异常,异常的提示输出为:
This NSPersistentStoreCoordinator has no persistent stores. It cannot perform a save operation
转载于:https://my.oschina.net/kiloct/blog/119747