以下の内容はhttps://anton0825.hatenablog.com/entry/20140805/1412841732より取得しました。


CoreDataでDBからデータを取得しようとすると「executeFetchRequest:error: A fetch request must have an entity」

原因はAppCodeでクラス名をRenameした時に、mogeneratorで生成したクラス内の以下のようなところのEntity名もRenameされてしまっていたこと。

return [NSEntityDescription insertNewObjectForEntityForName:@"Property" inManagedObjectContext:moc_];

Entity名をdatamodelで定義されているものと同じにしたらなおった。




以上の内容はhttps://anton0825.hatenablog.com/entry/20140805/1412841732より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14