当我通过此代码自行创建容器时,应用程序支持文件夹中会创建哪种持久性存储?
private lazy var storeContainer: NSPersistentContainer = {
let container = NSPersistentContainer(name: self.modelName)
container.persistentStoreDescriptions = [self.storeDescription]
container.loadPersistentStores { (storeDescription, error) in
if let error = error {
fatalError("Unresolved error \(error)")
}
}
return container
}()
答案 0 :(得分:1)
默认情况下,在iOS上,它会创建一个NSSQLiteStoreType
的持久存储,并启用自动轻量级迁移。