I have the same issue... It's really annoying. Every time you have to go to Report Navigator - there are the being shown. Issues navigator is empty, lol.
I guess it may be somehow related to project content because when I try compiling another project, Xcode shows errors.
Xcode Version 14.3.1 (14E300c)
Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)
Target: arm64-apple-darwin22.5.0