Xcode 12 collapse all build targets

Viewed 65

Using Xcode 12, my build contains many targets. After the build ends, the Report Navigator displays the issues for each target in an expanded mode. To collapse, I have to close the target nodes one by one which is a great nuisance. Even after closing all, the moment you navigate around and go back to that page - the target reports are expanded again.

Tried:

  • cmd + click (alt + click, cmd + shift + click) on one of the target nodes.
  • Right click on one of the nodes, select "Collapse all transcripts".

None help. Any advice?

EDIT: clarification: the question is about multiple targets, i.e.:

Build Target t1
  error 1
  error 2
Build Target t2
  error 3
  error 4

And trying to collapse to this:

> Build Target t1
> Build Target t2
1 Answers

Simply select any line in the report, press ⌘A to select everything, then press the left arrow key to collapse all the targets.

enter image description here

Related