Rename xcdatamodel file

前端 未结 10 2135
暖寄归人
暖寄归人 2020-12-05 00:55

What do in need to do to rename the .xcdatamodel file. Renaming .xcdatamodel filename, along with changing ...

NSURL *modelURL = [[NSBundle mainBundle] URLFo         


        
10条回答
  •  失恋的感觉
    2020-12-05 01:20

    Thanks to all of you for helping me finally nail this one down. Here's how I fixed this after renaming my project in Xcode 4.2:

    1) Delete the reference to the *.xcdatamodeld file in your project. If it's like mine, an editor won't load when you select it. This tells me a link was broken in the rename.

    2) Right-click on the .xcdoeproj file for your project and select 'Show Package Contents'.

    3) Drag the *.xcdatamodeld file you find there back into your project. Done.

    My app buil

提交回复
热议问题