Search code examples
iphonexcodeios4ios-simulatorxcodebuild

llvm-gcc-4.2: error


The Project build & runs fine on a real device but a build for the iphone simulator finishes in this error 'llvm-gcc-4.2: error'. Any ideas?

llvm-gcc-4.2: error trying to exec '/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/../llvm-gcc-4.2/bin/arm-apple-darwin10-llvm-gcc-4.2': execvp: No such file or directory 
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 255

thx, Fabian


Solution

  • The first thing to do when things don't make sense is to clean the project (Product/Clean).

    Also, look in /Developer/Platforms/iPhoneSimulator.platform ... etc and see if there is a directory or alias missing. Also open your target Build Settings and verify the paths under Search Paths.

    Here's what my /Developer/Platforms/ looks like. /Developer/Platforms/...