title: MOMC error with XCode4 and Data Model Compile
body: <p>Whenever I build my project, I'm getting the error:</p>
  
  <pre><code>Command /Developer/usr/bin/momc failed with exit code 1
  </code></pre>
  
  <p>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.</p>
  
  <p>
  What I did to cause this error: Switched to a versioning model</p>
  
  <p>What I tried:</p>
  
  <ul>
  <li>Removing new version of Data model</li>
  <li>Removing any old versions of Data model</li>
  <li>Removing entire versioning model and using previous version from Git</li>
  <li>Completely deleting any files or references to .xcdatamodel files (no coredata at all)</li>
  </ul>
  
  <p>I've built clean between each attempt, and restarted XCode multiple times. Always the "exit code 1" error with momc.</p>