iphonellvm-gcc

Building an iPhone OS 2.2.1 project fails with error


Maybe someone knows what this means?

error: can't exec '/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2' (No such file or directory)

I wanted to use LLVM GCC 4.2 compiler because an Apple guy said that's the best one. I guess LLVM GCC 4.2 does not work with iPhone OS 2.2.1 framework?


Solution

  • As I respond here to this question, LLVM is not yet ready to compile applications targeted at the iPhone for any version of the SDK. You can use it to build for the iPhone Simulator, as described in this question, because you are building for the Mac in that case.

    I would expect it to be available soon with a new release of the iPhone SDK, given the rapid pace of improvement with the LLVM compiler and Clang parser.