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.
TechZen Aug 09 2018-11-11T00: 00Z
source share