XCode reporting issues twice

Why is XCode reporting issues (or errors) twice sometime?

Using XCode Version 13.1 (13A1030d).

For example (dummy example), XCode starts by showing just 1 error:

and then, seconds later it shows this:

I tried unsetting/setting "Build Active Architecture Only" (ONLY_ACTIVE_ARCH). But it did have an effect.

Moreover the problem is erratic - sometimes the error is reported once only; and then on a second build it shows errors twice.

Answered by recursive in 697802022

Ok... I think I may know why it's happening:

  1. One report is from the build

  2. the other one is from the "Show live issues" option (Preferences -> General)

Disabling "Show live issues" removes one occurence of the report.

I had this option off previously; I guess when I installed the new XCode this option got reset (or I reset it by mistake); but I don't recall seeing this problem in previous XCode versions...?

You can also filter out "Show only issues from the lastest build" (this will only filter in the Navigator, not in the Editor)

I am experiencing the same issue just now. Have you already sent a bug report?

Accepted Answer

Ok... I think I may know why it's happening:

  1. One report is from the build

  2. the other one is from the "Show live issues" option (Preferences -> General)

Disabling "Show live issues" removes one occurence of the report.

I had this option off previously; I guess when I installed the new XCode this option got reset (or I reset it by mistake); but I don't recall seeing this problem in previous XCode versions...?

You can also filter out "Show only issues from the lastest build" (this will only filter in the Navigator, not in the Editor)

XCode reporting issues twice
 
 
Q