title: OS X gcc "installation problem"
body: <p>OS X 10.5.6, Xcode 3.1 with iPhone support.</p>
  
  <p>After compiling some apps for iPhone device in Xcode, I've noticed that calling GCC from command line no longer works:</p>
  
  <pre><code>$ gcc
  gcc-4.0: installation problem, cannot exec '/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//i686-apple-darwin9-gcc-4.0.1': No such file or directory
  </code></pre>
  
  <p>Note how gcc attempts to launch i686 executable in iPhoneOS (arm) platform directory.</p>
  
  <p>How do I switch back to MacOSX.platform toolchain?</p>
  
  <pre><code>$ ls /Developer/Platforms/
  MacOSX.platform          iPhoneOS.platform        iPhoneSimulator.platform
  </code></pre>