Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Project-Wide compiler flag

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?

like image 714
Riley Testut Avatar asked Oct 28 '11 17:10

Riley Testut


People also ask

How do I change flags in Xcode?

To do that, goto Project (not target)→Build settings → Swift Compiler → Custom flags → Other swift flags section and edit the different configuration flags. Add the flags using the syntax “ -D <flag_name>”. NOTE: if you are not seeing Other swift flags section, you will be in the basic build settings mode.

Where are Xcode schemes stored?

Schemes are saved in a separate xml file, within xcuserdata or xcshareddata . Most repositories ignore xcuserdata since Xcode also put things in there like breakpoint settings that shouldn't be shared between developers.


1 Answers

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

enter image description here

like image 77
chown Avatar answered Sep 30 '22 07:09

chown