Xcode Data Model Compiler - MOMC Error: Command momc failed with exit code 1
-
28-06-2021 - |
Question
I am having troubles integrating XMPP on my iOS Project using Xcode 4.4 under Mac Mountain Lion OS X. I followed every step but I got stuck with this problem:
Command momc failed with exit code 1
I have deleted all the .xcdatamodel files, clean and re-build the project, but the error is still there.
Solution
Ok. Solved it. You have to delete the *.xcdatamodel files on the Xcode project. (Right click > Delete).
OTHER TIPS
Check if you have empty .xcdatamodel folders inside .xcdatamodeld. This may happen due to git behaviour for example.
Face the same problem
I just created new model with new name and copy all the entity from old model and paste in new model and deleted old model, it worked
This also can happen when the project is first compiled on a newer version of xCode (beta versions for example) and then trying to recompile with the original version.