How to Hide Warnings in Xcode

后端 未结 4 1622
忘掉有多难
忘掉有多难 2020-12-29 02:17

Yes I know that warnings are useful and should not be disabled and I usually correct all of them, but in XCode they mingle with my code and get on my nerves. I want to see w

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-29 02:58

    Select your project and select your target and show Build Phases. Search the name of the file in which you want to hide, 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. Hope it will help you.

提交回复
热议问题