Xcode:如何暂时隐藏问题导航器中的黄色警告

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/35404061/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 08:32:29  来源:igfitidea点击:

Xcode: How to temporarily hide yellow warnings from Issue Navigator

iosobjective-cxcode

提问by Arik Segal

I'm working on a project (written by another developer...) with LOTS of yellow warnings. During the build process, if there is a critical (red) error, the error keeps moving down beyond the bottom of the left pane, and it's always taking me some time until I can finally point the mouse at it and look at the error. Is there a way of showing only the red (critical) errors?

我正在处理一个项目(由另一位开发人员编写...),有很多黄色警告。在构建过程中,如果出现严重(红色)错误,错误会一直向下移动到左窗格底部之外,而且我总是需要一些时间才能最终将鼠标指向它并查看错误。有没有办法只显示红色(严重)错误?

回答by Arik Segal

Toggle the "!" button(Show only errors) at the bottom right corner of the Issues Navigator to hide Warnings (next to the results filter).

切换“!” 按钮(仅显示错误)在问题导航器的右下角隐藏警告(在结果过滤器旁边)。

Filter Warnings Xcode 10

过滤警告 Xcode 10

回答by Jason Nam

Go to the Project -> Your Project -> Search 'Warning'. Then turn off warnings you don't want.

转到项目 -> 您的项目 -> 搜索“警告”。然后关闭您不想要的警告。