How to suppress warnings in Xcode?

妖精的绣舞 提交于 2019-12-03 16:39:36

Select the project in the navigator, then select the target from the list. Select the Build Phases tab, then expand the Compile Sources phase. The Compiler Flags column is where you specify per-file compiler flags. Enter -Wno- to negate a warning. e.g.: -Wno-unused-parameter

You can add a compiler flag -w for each affected .m file you want silenced, in the build phases for your app's target, under "Compile Sources."

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!