Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Data Model Compiler - MOMC Error: Command momc failed with exit code 1

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

See screenshot:

I have deleted all the .xcdatamodel files, clean and re-build the project, but the error is still there.

like image 396
emmandroid Avatar asked Aug 24 '12 02:08

emmandroid


2 Answers

Ok. Solved it. You have to delete the *.xcdatamodel files on the Xcode project. (Right click > Delete).

like image 166
emmandroid Avatar answered Nov 03 '22 14:11

emmandroid


Check if you have empty .xcdatamodel folders inside .xcdatamodeld. This may happen due to git behaviour for example.

like image 41
szotp Avatar answered Nov 03 '22 15:11

szotp