XCode4和数据模型编译出现MOMC错误 [英] MOMC error with XCode4 and Data Model Compile

查看:1588
本文介绍了XCode4和数据模型编译出现MOMC错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我构建我的项目,我得到的错误:

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

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


$ b $ p

我已经阅读了关于删除无关数据模型版本作为修复的帖子,没有什么工作。我被困扰,因为没有改变我的Build的行为:它总是失败与上述错误代码,无论是否实际有CoreData模型文件或不。

I've read posts here about deleting extraneous Data Model versions as a fix, and nothing works. I'm stumped because nothing changes the behavior of my Build: It always fail with the above error code, regardless of whether I actually have CoreData model files or not.


我做了什么导致此错误:切换到版本控制模型

What I did to cause this error: Switched to a versioning model

我尝试:


  • 删除新版本的数据模型

  • 删除任何旧版本的数据模型

  • 删除整个版本控制模型并使用以前的版本from git

  • 完全删除任何文件或对.xcdatamodel文件的引用(根本没有coredata)

  • Removing new version of Data model
  • Removing any old versions of Data model
  • Removing entire versioning model and using previous version from Git
  • Completely deleting any files or references to .xcdatamodel files (no coredata at all)

我在每次尝试之间构建清洁,并重新启动XCode多次。使用momc时总是出现退出代码1错误。

I've built clean between each attempt, and restarted XCode multiple times. Always the "exit code 1" error with momc.

推荐答案

打开.pbxproj文件并手动删除对.xcdatamodel的所有引用。重新打开XCode,Build Clean ....然后删除旧版本的.xcdatamodel

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

这篇关于XCode4和数据模型编译出现MOMC错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆