title: "Compilation failed for data model at path" when compiling Core Data model after upgrading to lion
body: <p>After upgrading to lion, the following error prevents successful compilation of a core data model:</p>
  
  <blockquote>
    <p>core-data-model/MyModel.xcdatamodeld:0: error: Compilation
    failed for data model at path
    'resources/MyModel.momd/MyModel.mom'</p>
  </blockquote>
  
  <p>This is the result of executing the following command:</p>
  
  <blockquote>
    <p>/Developer/usr/bin/momc core-data-model/MyModel.xcdatamodeld resources/MyModel.momd</p>
  </blockquote>
  
  <p>Note that this command is executing in a custom build script independently of xcode, and that it ran without problems before upgrading to Lion.</p>
  
  <p>I've read of model compilation errors after upgrading to Lion (for instance see <a href="https://stackoverflow.com/questions/6788215/data-model-version-compile-error-after-upgrading-to-lion-xcode4-1">this</a> question), but the solutions detailed there do not seem to apply.</p>
  
  <p>Anyone else encounter problems manually invoking model compilation after upgrading to Lion? Any ideas? Thanks.</p>