我的 AppDelegate 中出现问题但找不到错误,我检查了捆绑标识符但它仍然不起作用,这是我的代码:
lazy var applicationDocumentsDirectory: NSURL = {
let urls = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)
return urls[urls.count-1] as NSURL
}()
lazy var managedObjectModel: NSManagedObjectModel = {
let modelURL = Bundle.main.url(forResource: "koalak", withExtension: "momd")!
return NSManagedObjectModel(contentsOf: modelURL)!
}()
我得到的错误截图: