In Xcode, how to suppress all warnings in specific source files?

后端 未结 3 1705
北荒
北荒 2020-11-28 02:39

In my application I use 3rd party code that triggers some warnings. I reviewed them and they can be safely ignored.

Now I want to \"mark\" a file somehow, so Xcode w

3条回答
  •  失恋的感觉
    2020-11-28 03:26

    Select your target and show Build Phases. Then enter the name of the file in the search box, and you should see it listed in the Compile Sources phase. Double-click in the Compiler Flags column for that file and enter -w to turn off all warnings for that file.

提交回复
热议问题