title: How to fix: Xcode cannot be opened because of a problem?
body: <p>After installing Xcode 4.0.2, I get this error when I try to launch it by double-clicking on an existing project:</p>
  
  <blockquote>
    <p><strong>Dyld Error Message:
      Library not loaded: @rpath/DevToolsFoundation.framework/Versions/A/DevToolsFoundation
      Referenced from: /Developer/Developer/Applications/Xcode.app/Contents/MacOS/Xcode
      Reason: image not found</strong></p>
  </blockquote>
  
  <p>Launching Xcode via the dock and opening the project from inside Xcode works fine. Also note that doing a repair install of Xcode did not resolve the issue. I haven't tried completely uninstalling Xcode and installing from scratch, but I would prefer to avoid that as I have my IDE nicely customized the way I like it.</p>
  
  <p><strong>Update:</strong> I just tried a complete uninstall of Xcode via <code>sudo Developer/Library/uninstall-devtools --mode=all</code> then rebooted and reinstalled. Still having the same issue.</p>