MOMC error with XCode4 and Data Model Compile

前端 未结 2 1489
谎友^
谎友^ 2021-02-13 20:04

Whenever I build my project, I\'m getting the error:

Command /Developer/usr/bin/momc failed with exit code 1

I\'ve read posts here about deleti

相关标签:
2条回答
  • 2021-02-13 20:53

    For me the issue wasn't within the .pbxproj file.

    Find the xcdatamodel file in finder. Option click and open package contents. Check to see if there are multiple versions inside that you don't recognise.

    I was expecting only one version. A second version some how came about and xcode wasn't registering it.

    I removed the second version and it's working fine now.

    0 讨论(0)
  • 2021-02-13 21:03

    Open up the .pbxproj file and manually remove all references to .xcdatamodel. Re-open XCode, Build Clean....and then drop in your older version of .xcdatamodel

    0 讨论(0)
提交回复
热议问题