Core Data model files does not load on rename

前端 未结 6 1035
眼角桃花
眼角桃花 2020-12-29 09:52

I have a model file thats named \"Model\". If I rename it to \"SomeOtherName\" it just does not get loaded.

initWithContentsOfURL returns nil and:

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-29 10:19

    Using Xcode 7.2.1:

    1. Go to Project Navigator
    2. Select the data model file (e.g. MyProject.xcdatamodeld)
    3. Select that file's File Inspector
    4. Change the Model Version

提交回复
热议问题