Reputation: 3031
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?
Upvotes: 30
Views: 13150
Reputation: 512
In Xcode 14 you can hide some warnings while showing others.
In the Issue Navigator (Cmd-5) enter a word in the search field at the bottom and press Return. A down-arrow appears before the word that lets you select 'Contains', 'Does Not Contain', 'Begins With', and 'Ends With' for that word. Repeating these steps lets you add more qualified words to your search.
These searches are saved in a 'Recent Filters' menu that you can access by clicking on the left-most icon in this search field. There are also built-in filters in this menu such as 'not DEPRECATION'.
Useful for focusing on some fixing warnings before moving on to others.
Upvotes: 1
Reputation: 4037
Xcode 11.7,
handle Apple Clang Warning Policies
image is more vivid.
Upvotes: 3
Reputation: 3031
Toggle the "!" button (Show only errors) at the bottom right corner of the Issues Navigator to hide Warnings (next to the results filter).
Upvotes: 113
Reputation: 2011
Go to the Project -> Your Project -> Search 'Warning'. Then turn off warnings you don't want.
Upvotes: 4