Core Data存储数据出错(This NSPersistentStoreCoordinator has no persistent stores (unknown))

Core Data存储数据的时候崩溃,崩溃信息:

reason: 'This NSPersistentStoreCoordinator has no persistent stores (unknown).  It cannot perform a save operation.'

Core Data存储数据出错(This NSPersistentStoreCoordinator has no persistent stores (unknown))

创建一个全局断点,发现最后断点停在存储协调器设置数据库URL的地方。

Core Data存储数据出错(This NSPersistentStoreCoordinator has no persistent stores (unknown))

最后发现桌面并不存在test2这个文件夹,当test2文件夹存在是,就不会崩溃。

Core Data测试Demo下载

上一篇:【BZOJ4009】[HNOI2015]接水果 DFS序+整体二分+扫描线+树状数组


下一篇:PAT Sign In and Sign Out[非常简单]