MOMC error with XCode4 and Data Model Compile

前端 未结 2 1477
谎友^
谎友^ 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.

提交回复
热议问题