Are compiler settings set per project or once and for all?
For example, can one declare:
For all projects i create from this day forth, until told otherwise,
treat all warnings as errors
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re using Xcode*, just use shared/global xcconfig files. Definitions at the project and target levels have precedence if defined, so you can make exceptions and/or combine them in many ways.
Xcconfig Crash Course:
This Q+A will explain the configuration.
Then you just fill the xcconfig file with the build settings you want, like so:
Other notes:
#includexcconfig files in xcconfig files (with some restrictions)So, if all you want is “Treat warnings as errors”, your xcconfig would have this: