Ignore all warnings in a specific file using LLVM/Clang

前端 未结 4 2109
逝去的感伤
逝去的感伤 2020-12-02 05:41

There are some files in my iOS project that have some warnings, and I want to ignore those warnings. I don\'t want to disable warnings in the entire project (know how to do

4条回答
  •  一生所求
    2020-12-02 06:13

    You can select specific target -> Build settings, search for Inhibit All Warnings and set to YES. This will disable warnings on this target. This can be useful if you use some code like JSONKit with cocoapods, and you don't want to see how compiler cries about warnings :)

提交回复
热议问题