How to change the build configuration of Xcode without changing project files?

I would like to know if compilation options can be changed without changing xcode projects.

Example by adding -Wno-unused-parameter to CFLAGS so that it will be used by Xcode when creating projects.

This should work in both cases: build from xcode in the GUI or from the console.

If someone asks why, for example, the number of projects is quite large and you may need to change only temporary parameters.

+1
xcode xcode4
source share
1 answer

Place the compiler options that you want to change in the configuration settings file. You can create a new one by choosing File> New> New File. The configuration settings file is in the Others group under iOS and Mac OS X.

To tell the Xcode project to use the configuration settings file, select the project file from the project navigator to open the project editor. Select the project on the left side of the editor. Click the "Information" button at the top of the editor. You should see a list of assembly configurations in the editor. Click the disclosure triangle next to the assembly configuration to use the configuration settings file.

+4
source share

All Articles