Error Domain=NSCocoaErrorDomain Code=256 "The operation couldn’t be completed. (Cocoa error 256.)" UserInfo=0x1f5cd8b0 {NSUnderlyingException=authorization denied, NSSQLiteErrorDomain=23} NSDictionary *persistentStoreOptions = [NSDictionary dictionaryWithObjectsAndKeys: NSFileProtectionNone, NSPersistentStoreFileProtectionKey, nil]; NSError *error; if (![_persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeURL options:persistentStoreOptions error:&error]) { ... }