Been having my first crack at Core Data and I\'m getting the following error when running my code on my device, but it works fine on the simulator..
*
I faced this same error when i renamed the .xcdatamodel
file from xcode and changed the renamed name in app delegate wherever it was needed, but i still got the same error. None of the suggested procedure worked for me.
Then I opened the folder in Finder
and found an additional file .xccurrentversion
along with .xcdatamodel
file. I opened it up in TextEdit
app and changed this:
_XCCurrentVersionName
Your_Renamed_Model_FileName.xcdatamodel
I am using this with Xcode 6.4, OSX Yosemite 10.10.1
I hope it helps!