I am having a problem within my AppDelegate but can't find the mistake, I checked the bundle identifier but it still doesn't work, there is my code :
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)!
}()
A screenshot of the Error I get :