I’m talking about xcode 3.
Thank you.
Navigate to the location of your template (it may look like this: /Developer/Platforms/iPhoneOS .platform/Developer/Library/Xcode/Project Templates /
Once you are there, you can select the project template you want to modify and find its .xcodeproj file. You can “show package content” , Inside is project.pbxproj. You can modify this file and edit in the build settings to change the default compiler.
You must find the relevant build settings for each configuration (debug, release, etc.) For each part, search for /*Begin XCBuildConfiguration part*/.
Then you have to add GCC_VERSION as the key and com.apple.compilers.llvm.clang.1_0 as the value (according to Xcode, 1_0 in this instance Actually it is LLVM 1.6. I also assume that the key name GCC_VERSION is only GCC due to legacy reasons, it may be updated to COMPILER_VERSION or something in the future).
Save the template and create a new project (if Xcode has been opened , You may have to restart it). The compiler should now be set to LLVM.
However, I don’t recommend you to do this because LLVM is still not 100% suitable for deploying applications to users.
I really like switching from gcc to LLVM compiler, but do I have to manually switch every time I start a new project, or is there a way to make LLVM the default compiler?
I’m talking about xcode 3.
Thank you.
To complete this task, you must Modify the project template in the Developer directory.
Navigate to the location of your template (it may look like this: /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Project Templates /
Once you are there, you can choose You want to modify the project template, and find its .xcodeproj file. You can “show package content”, which is project.pbxproj. You can modify this file and edit it in the build settings to change the default compiler. p>
You have to find each section related to the build settings of each configuration (debug, release, etc.), search for /*Begin XCBuildConfiguration section*/.
Then you have to add GCC_VERSION as a key , com.apple.compilers.llvm.clang.1_0 as the value (according to Xcode, 1_0 in this instance is actually LLVM 1.6. I also assume that the key name GCC_VERSION is only GCC due to legacy reasons, and may be updated to COMPILER_VERSION or some future Some content).
Save the template and create a new project (if Xcode is already open, you may have to restart it). The compiler should now be set to LLVM.
However, I This is not recommended because LLVM is still not 100% suitable for deploying applications to users.