Use default LLVM compiler for all Xcode projects?

I really like switching from gcc to the LLVM compiler, but do I need to switch manually every time I start a new project, or is there a way to make LLVM the default compiler?

I am talking about xcode 3.

Thank.

+3
source share
5 answers

To do this, you will need to change the project template in the developer directory.

Go to where your templates are located (maybe something like: /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Project Templates/

, , , .xcodeproj. " ", - project.pbxproj. , .

, (Debug, Release ..), /* Begin XCBuildConfiguration section */.

GCC_VERSION com.apple.compilers.llvm.clang.1_0 (1_0 - LLVM 1.6 Xcode. , GCC_VERSION GCC , , COMPILER_VERSION - ).

(, Xcode, ). LLVM.

, LLVM - 100% .

+5

, () . (.. .) , GCC 4.2 Mac OS X Leopard @ Jasariens , .

LLVM -, .. ( , GCC, .)

, , Hidden Features of Xcode, .: -)

+1

( , ) - 5 :

  • /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/Project Templates/iPhone Base.xctemplate ( Command + o () Xcode, Command + Shift + G ( ), )
  • TemplateInfo.plist Xcode
  • Project > SharedSettings > GCC_VERSION String com.apple.compilers.llvm.clang.1_0: http://grab.by/a0dV
  • iPhone.

, , , /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/Project Templates/iPad Base.xctemplate iPad ..

.

.

+1

Ive script, Xcode . , , .

0

, .

iOS XCode :

EDIT file (using sudo)

/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOSXXXX.sdk/SDKSettings.plist

Restart Xcode and do it!

0
source

Source: https://habr.com/ru/post/1787745/


All Articles