OS X 10.5.6, Xcode 3.1 with iPhone support.
After compiling some apps for iPhone device in Xcode, I've noticed that calling GCC from command line no longer works:
$ 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
Note how gcc attempts to launch i686 executable in iPhoneOS (arm) platform directory.
How do I switch back to MacOSX.platform toolchain?
$ ls /Developer/Platforms/
MacOSX.platform iPhoneOS.platform iPhoneSimulator.platform