Xcode Project-Wide compiler flag

11,849

You can set project wide compiler flags in the project settings under the "Language" section of the "Build Settings" tab.

enter image description here

Share:
11,849
Riley Testut
Author by

Riley Testut

Updated on June 04, 2022

Comments

  • Riley Testut
    Riley Testut almost 2 years

    With Xcode 4.2 and the LLVM compiler, when compiling for ARMv6 there are some very weird bugs in the generated application (such as "width" property of CGSize returning the "height" instead). To fix this, I found I must set the compiler flag -mno-thumb. I know how to set compiler flags on a file-by-file basis, but is there a way to set a compiler flag for the entire project?