title: Xcode fails in build with "Compilation failed for data model at path" - and does not work with suggested StackOverFlow fixes to similar issues
body: <p>Hi my Xcode project at some point yesterday started failing to build with the error: </p>
  
  <blockquote>
    <p>Compilation failed for data model at path
    '/Users/cooldocman/Library/Developer/Xcode/DerivedData/cooldocs-ejjarvdamwdcbbcpahhnbweztrmh/Build/Products/Debug-iphonesimulator/cooldocs.app/cooldocs.momd/cooldocs.mom'</p>
  </blockquote>
  
  <p>I did research on StackOverflow and other sites - and none of the suggested fixes to similar sounding issues have worked for me. The issue appears to be at the intersection of SVN, Xcode, Core Data and XCUserState, and I have tried a number of steps from info I found on StackOverflow and other sites, but still have not solved this.</p>
  
  <p>Here's what I have tried so far:</p>
  
  <ol>
  <li><p>One stackoverflow article recommended to clean out the SImulator applications folder:
  So I  removed apps from under /Users/cooldocman/Library/Application Support/iPhone Simulator/5.1/Applications
  ... the error persisted ...</p></li>
  <li><p>Another stackoverflow thread advised to remove the temp DerivedData folder.
  So I removed all folders under 
  /Users/cooldocman/Library/Developer/Xcode/DerivedData
  (the folders in the error message i.e. /Users/cooldocman/Library/Developer/Xcode/DerivedData/cooldocs-ejjarvdamwdcbbcpahhnbweztrmhwere 
  therefore were deleted)</p></li>
  <li><p>Another article said to remove the contents of the Archives folder ...
  /Users/cooldocman/Library/Developer/Xcode/Archives</p></li>
  </ol>
  
  <p>Still no luck even after steps 2 and 3</p>
  
  <ol>
  <li><p>Even after all the cleanup, I still see when I grep contents of my project that a reference still exists to the old "cooldocs-ejjarvdamwdcbbcpahhnbweztrmh" folder...</p>
  
  <p>$ grep ejjarvdamwdcbbcpahhn <em>/</em>/*/<em>/</em>/*
  Binary file trunk/cooldocs.xcodeproj/project.xcworkspace/xcuserdata/cooldocman.xcuserdatad/UserInterfaceState.xcuserstate matches</p></li>
  </ol>
  
  <p>Now how do I clean <em>this</em> up?</p>
  
  <p>PERHAPS THE SECRET I NEED IS HOW TO CLEAN UP THIS LEFTOVER xcuserdata and hopefully that will resolve the issue - or otherwise, to use a treasure hunt analogy, it may at least open the door to another mysterious tunnel that needs to be crawled down!  (and when I come out of that final cave is when I can start the actual work on what I really need to do!)</p>
  
  <p>Thanks for reading and appreciate any help and insights from this group!</p>
  
  <p>:-)</p>