title: Can't edit xcdatamodeld in xcode4 momb
body: <p>I renamed my project.. and step by step I renamed all the targets, AppDelegate classes etc. Anyway it builds now but crashes as it can't find the .momd in the below code:</p>
  
  <pre><code>NSURL *modelURL = [[NSBundle mainBundle] URLForResource:@"MyApp" withExtension:@"momd"];
  </code></pre>
  
  <p>How do I get it to 'refresh' or build this momd file again? I have read various potential solutions involving adding a version on the .xdatamodeld file but heres the other thing.</p>
  
  <p>When I click on the .xdatamodeld file it doesn't open up the editor anymore. It just does nothing. Right click bring me zero options.</p>
  
  <p>I tried deleting the xdatamodeld file and creating a new one, but it has the same problem. When I press on it it doesn't open the editor. </p>
  
  <p>When I create a brand new core data xcode project template, it does open the editor when I press on it. What am I doing wrong here?</p>