バンドルの表示名を から${PRODUCT_NAME}
に変更Application
すると、次の CoreData エラーが発生する理由を知っている人はいますか?
Failed to create file; code = 2
私xcdatamodeld
の名前はまったく同じで ( )、バンドルの表示を再度Application
設定した場合にのみアプリが正しく実行されます。${PRODUCT_NAME}
また、ストアの URL にはこの名前が付いています@"Application.sqlite"
。
Info.plist ファイルの下でこれらの値を変更しています。
編集
エラーは次の行にあります
- (NSPersistentStoreCoordinator *)persistentStoreCoordinator
{
if (__persistentStoreCoordinator != nil) {
return __persistentStoreCoordinator;
}
// This line produces the error
NSURL *storeURL = [[self applicationDocumentsDirectory] URLByAppendingPathComponent:@"Beezer.sqlite"];
...
}