概要
- すぐには変更できないObjective-Cのファイルがあり、暫定処理としてWarningを非表示にしたい
- 下記の通り、Compiler Flagsに
-w
を渡せば良さそう - ただし
.h
はこれに含まれずどうするか分からず仕舞い
In Xcode, how to suppress all warnings in specific source files? 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.