emmandroid
emmandroid

Reputation: 821

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.

Upvotes: 8

Views: 7775

Answers (5)

Jeremie D
Jeremie D

Reputation: 4204

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.

Upvotes: 0

szotp
szotp

Reputation: 2622

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

Upvotes: 3

shuiyouren
shuiyouren

Reputation: 1172

Maybe the problem is iOS/iOS Simulator version! If you don't delete the *.xcdatamodel for git, you can try replace iOS/iOS Simulator SDK or update. My problem is resolved in this way.

enter image description here

Upvotes: 2

Mohammad Parvez
Mohammad Parvez

Reputation: 417

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

Upvotes: 0

emmandroid
emmandroid

Reputation: 821

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

Upvotes: 15

Related Questions