What do in need to do to rename the .xcdatamodel file. Renaming .xcdatamodel filename, along with changing ...
NSURL *modelURL = [[NSBundle mainBundle] URLFo
In Xcode 4.2, I renamed my model (*.xcdatamodeld) file in project navigator (it automatically renamed *.xcdatamodel file inside a package, and both files in my filesystem).
In initWithContentsOfURL: of the NSManagedObjectModel, I used a new name.
This resulted in what @Mustafa is describing in the question (nil model).
So I tried adding a new version of my model and it solved the problem (even though I had no changes in my model).