"nspersistentstorecoordinator has no persistent stores. it cannot perform a save operation background thread".
在后台线程上保存manageContext会导致此问题吗?
很抱歉,如果已经有人问过这个问题。我想知道其发生的可能原因?
最佳答案
显然您已经创建了一个基于内存的持久存储协调器,而不是使用 SQLite 数据库(通常情况)或 XML 进行存储的协调器。由于没有保存数据库的文件,因此您无法保存任何内容。
检查创建持久存储协调器的代码。
关于ios - 什么时候会出现 "This NSPersistentStoreCoordinator has no persistent stores. It cannot perform a save operation."错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25426255/