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

后端 未结 3 1702
北荒
北荒 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:27

    Select Project in left navigator and select target go to build phase and Put -w in Build Phase of target file. It will hide all compiler warnings enter image description here

提交回复
热议问题