Core Data; Cocoa error 134100

前端 未结 6 1531
北荒
北荒 2020-12-14 08:17

This is my first time with core data, and I am getting the following error.

I would really appreciate it if you could tell me how to fix it.

Unresolv         


        
6条回答
  •  南笙
    南笙 (楼主)
    2020-12-14 08:43

    It happens with me as well and by removing STORE URL I fixed my this with bellow code - [[NSFileManager defaultManager] removeItemAtURL:storeURL error:nil]

    Clarification : delete the file at the storeURL and recreate it, if we don’t want data to stick around between tests. Since the new tests have a new model version and the old file couldn’t be opened properly. Also if we changed managed object model - we have to write migrations for it.

提交回复
热议问题