Key Data Warning: "Version hash information is not available for all models"

I get this warning for my xdatamodeld: "The hash version is not available for all models." How do I get rid of this? I also started crashing at startup when I install the application as new ... I wonder if they are connected? This is an accident:

* Application termination due to the uncaught exception "NSInvalidArgumentException", reason: "Unable to create NSPsistentStoreCoordinator with model nil"

+1
core-data
Aug 08 '11 at 7:11
source share
4 answers

This is a beta version of iOS5 triggered by a fetch request in a model file. At the moment, deleting the query query corrects it.

+3
Aug 13 2018-11-11T00:
source share

I am experiencing the same thing as soon as I installed Xcode 4.2 with iOS 5 beta 5, maybe something is there? I was not last night working on my production system, with Xcode 4.1. Unfortunately, I am reinstalling it now, and it will take some time before I find out if this is the reason.

0
Aug 08 2018-11-11T00:
source share

The first error indicates that you have multiple .xcdatamodel files with the same name but with different versions. In one of several multiples, the internal version number is missing, that is, the version hash.

The second error is caused by the first, because the managed object model cannot create itself by combining model files with the same name, but with different and unknown versions. The permanent storage coordinator, in turn, cannot initialize without a valid managed object model.

If this happens in development and you do not have several versions intentionally, then you probably have an old compiled .mom or .momd on the simulator from the previous assembly. Remove the entire application from the simulator, then clear the entire project in Xcode and rebuild and reinstall. This usually solves the problem.

0
Aug 09 2018-11-11T00:
source share

I ran into this problem in the iOS 5 SDK and it was not a problem. My problem was that I had many attributes in one object, that I inadvertently had a duplicate (i.e. Two lastUpdatedDate attributes in the same object).

0
Jan 26 '12 at 2:30
source share



All Articles