How to I make an iPad app compile on a device using LLVM GCC?
I have my application set up to use the LLVM GCC 4.2 in Target>Build Settings under Compiler Version and it worked for the simulator.
When I switched my "Scheme" to target an iPad, it threw the same warnings as I was getting when using GCC, so I'm assuming it is compiling under GCC now. But the "C/C++ Compiler Version" target is still开发者_StackOverflow社区 set to LLVM GCC 4.2 (except under iOS Default, where it is GCC 4.2 and I cannot change).
Why is it not compiling with LLVM GCC anymore and how can I change it so it does under the iPad?
Edit: The error I was getting has to do with accessing a superclass's instance variable. GCC gives an error if you did not write it as [self iVarName] while LLVM GCC compiles fine if you just use iVarName.
LLVM GCC is te LLVM preprocessor with the GCC compiler, so you should see the same error messages (and a few more in the IDE thanks to LLVM). You could try the LLVM Compiler 2.0, but it has a few bugs at the moment. To set the compiler, choose the project at the top left, tap the Build Settings tab and change the compiler.
精彩评论