【发布时间】:2018-07-04 14:34:50
【问题描述】:
我正在使用此代码复制文件数据库
try fileManager.copyItem(atPath: storeURL.path, toPath: storeCopyURL.path)
我可以看到创建了一个新的sqlite数据库
稍后,当我尝试使用此功能时
try! sharedInstance.managedObjectStore.addSQLitePersistentStore(atPath: storeURL.path, fromSeedDatabaseAtPath: storeCopyURL.path, withConfiguration: nil, options: nil)
我收到一个错误
E restkit.core_data:RKManagedObjectStore.m:299 复制种子失败 来自路径的数据库...
【问题讨论】: