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?
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.
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.
You can set project wide compiler flags in the project settings under the "Language" section of the "Build Settings" tab.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With