我已经将 Three20 项目导入到我的项目中,当我使用 iOS 5 升级到 Xcode 4.2 时,项目中出现了一堆警告。
我不关心它们,但它们会产生很大的噪音,而且现在很容易错过我的项目中的任何真正的警告。有没有办法禁用这些特定库的警告?
如果您的第三方库作为单独的目标添加,您可以检查Inhibit all warnings
针对该特定目标关闭所有警告。
If your library is added as plain source files to your current target, you can set -w
compiler flag for individual sources to mute all warnings in them. You have to go to Build phases
menu of your target configuration and set this flag for each source file in Compile Sources
section by double clicking on each file end entering -w
flag.
![enter image description here](https://i.stack.imgur.com/m6MdZ.png)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)