### XCode < 4.3.2 ###
After updating XCode from 4.2 to 4.3, I had exactly the same issue with lots of "unrelated" errors:
make[1]: /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2: No such file or directory
Including a Command /Developer/usr/bin/clang failed with exit code 1
error.
I fixed that with:
cd /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin
ln -s llvm-gcc-4.2 gcc-4.2
### XCode >= 4.3.2 < 5.0 ###
After updating XCode to 4.3.2 and since it's now an App (not in /Developer anymore). Need to do these steps for both the simulator and the iOS device:
Fix the issue on the simulator:
cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin
ln -s ../llvm-gcc-4.2/bin/llvm-gcc-4.2 gcc
ln -s ../llvm-gcc-4.2/bin/llvm-gcc-4.2 gcc-4.2
Fix the issue on iOS devices:
cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin
ln -s ../llvm-gcc-4.2/bin/llvm-gcc-4.2 gcc
ln -s ../llvm-gcc-4.2/bin/llvm-gcc-4.2 gcc-4.2
### XCode >= 5.0 ### (11/03/2014)
Fix the issue on the simulator:
cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin
ln -s /usr/bin/llvm-gcc gcc-4.2
Fix the issue on iOS devices:
cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin
ln -s /usr/bin/llvm-gcc gcc-4.2
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…