title: xcrun can't find Xcode path
body: <p>Mac OS X 10.8.2<br>
  Xcode 4.5.2 (installed at /Applications/Xcode.app)  </p>
  
  <p>Tried<br>
  <code>xcode-select -switch /Applications/Xcode.app</code><br>
  After that<br>
  <code>xcode-select -print-path</code><br>
  outputs correct path (/Applications/Xcode.app). But<br>
  <code>xcrun -find gcc</code><br>
  fails with error<br>
  xcrun: Error: could not stat active Xcode path '/Developer/Xcode.app/Contents/Developer'. (No such file or directory).  </p>
  
  <p><strong>Update 1:</strong><br>
  Here are permission specifiers  </p>
  
  <pre><code>ls -l /Applications/Xcode.app  
  </code></pre>
  
  <p>total 0<br>
  drwxr-xr-x@ 16 my  admin  544 Oct 30 23:38 Contents  </p>
  
  <pre><code>ls -l /Applications/Xcode.app/Contents  
  </code></pre>
  
  <p>total 24<br>
  drwxr-xr-x@  8 my  admin    272 Oct 30 23:30 Applications<br>
  drwxr-xr-x@  9 my  admin    306 Oct 30 23:36 Developer<br>
  drwxr-xr-x@  5 my  admin    170 Oct 30 23:30 Frameworks<br>
  -rw-r--r--@  1 my  admin  15289 Oct 19 14:22 Info.plist<br>
  drwxr-xr-x@  3 my  admin    102 Aug  5 08:03 Library<br>
  drwxr-xr-x@  3 my  admin    102 Oct 30 23:10 MacOS<br>
  drwxr-xr-x@ 16 my  admin    544 Oct 30 23:37 OtherFrameworks<br>
  -rw-r--r--@  1 my  admin      8 Oct 19 14:22 PkgInfo<br>
  drwxr-xr-x@ 56 my  admin   1904 Oct 30 23:36 PlugIns<br>
  drwxr-xr-x@ 52 my  admin   1768 Oct 30 23:46 Resources<br>
  drwxr-xr-x@ 17 my  admin    578 Oct 30 23:46 SharedFrameworks<br>
  drwxr-xr-x@  4 my  admin    136 Oct 17 21:50 XPCServices<br>
  drwxr-xr-x@  3 my  admin    102 Oct 30 23:10 _CodeSignature<br>
  -rw-r--r--@  1 my  admin    523 Oct 30 23:10 version.plist  </p>
  
  <pre><code>ls -l /Applications/Xcode.app/Contents/Developer  
  </code></pre>
  
  <p>total 0<br>
  drwxr-xr-x@  3 my  admin  102 Aug  5 07:29 Documentation<br>
  drwxr-xr-x@  7 my  admin  238 Dec 20 21:09 Library<br>
  drwxr-xr-x@  7 my  admin  238 Oct 30 23:46 Makefiles<br>
  drwxr-xr-x@  5 my  admin  170 Oct 30 23:28 Platforms<br>
  drwxr-xr-x@  3 my  admin  102 Oct 10 01:37 Toolchains<br>
  drwxr-xr-x@ 22 my  admin  748 Oct 30 23:31 Tools<br>
  drwxr-xr-x@  7 my  admin  238 Oct 30 23:46 usr<br>
  Please help.</p>