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

5

8

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.

Intromit answered 24/8, 2012 at 2:34 Comment(0)
I
15

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

Intromit answered 18/9, 2012 at 2:26 Comment(3)
Same. I deleted the .xcdatamodel file and reimported.Lian
I had this after moving the file to a different directory. No amount of deleting derived data/clean builds would fix it - I had to delete it from the project, clean everything and then re-add it.Raddy
Follow-up: it still came back a few builds later. I had to do this: https://mcmap.net/q/1323277/-could-not-create-bundle-folder-for-versioned-modelRaddy
H
3

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

Heredia answered 31/7, 2017 at 7:2 Comment(1)
For me too. Thanks!Mountainside
J
2

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

Jay answered 11/8, 2015 at 8:57 Comment(0)
A
0

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

Adrieneadrienne answered 13/12, 2014 at 6:20 Comment(0)
H
0

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.

Hercegovina answered 31/8, 2017 at 19:41 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.