Make Xcode ignore LLVM build warnings in 3rd party project

前端 未结 4 1060
深忆病人
深忆病人 2021-01-18 05:13

I have a third party project in my Xcode workspace (it\'s a dependency for my main project) and I want Xcode to ignore all build warnings from that third party project.

4条回答
  •  别那么骄傲
    2021-01-18 05:48

    Go to Build Phases > Compile Sources. Optionally filter the list. Select the ones you want to exclude and then double click in the blank area under the Compiler Flags column. Add -w and hit return:

    Adding compiler flag to Build Phase

提交回复
热议问题