What do in need to do to rename the .xcdatamodel file. Renaming .xcdatamodel filename, along with changing ...
NSURL *modelURL = [[NSBundle mainBundle] URLFo
There is a hidden file called .xccurrentversion which should be in the same location as your whatever.xcdatamodeld file. Inside there is a reference to your model which needs to be updated with the new name.
In some cases, you'll have to remove the .xcdatamodeld file from the project and add it again to make it work.