How to change Xcode build setup without modifying project files?

后端 未结 1 1063
遇见更好的自我
遇见更好的自我 2021-02-04 23:08

I would like to know if it is possible to change compile settings without modifying the xcode projects.

Example, adding -Wno-unused-parameter to CFLAG

相关标签:
1条回答
  • 2021-02-04 23:34

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

    To tell an Xcode project to use the configuration settings file, select the project file from the project navigator to open the project editor. Select the project from the left side of the editor. Click the Info button at the top of the editor. You should see a list of build configurations in the editor. Click the disclosure triangle next to a build configuration to have it use a configuration settings file.

    0 讨论(0)
提交回复
热议问题