Arik Segal
Arik Segal

Reputation: 3031

Xcode: How to temporarily hide yellow warnings from Issue Navigator

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

Answers (4)

SteveCaine
SteveCaine

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

dengST30
dengST30

Reputation: 4037

Xcode 11.7,

handle Apple Clang Warning Policies

image is more vivid.

1111

Upvotes: 3

Arik Segal
Arik Segal

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).

Filter Warnings Xcode 10

Upvotes: 113

Jason Nam
Jason Nam

Reputation: 2011

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

Upvotes: 4

Related Questions