Upgraded from XCode 14->15.1, now XCode hangs during build

It's a bit more complicated than the title, so here goes.

Upgraded to MacOS 14 (from 13) and so installed XCode 15.1. I have a rather large C++ project that has a couple of smaller target dependencies inside the same project. When I open XCode I can build the project and it's probably about as fast to build as it was before. If I then attempt to build/run again, XCode becomes unresponsive and hangs for a long time, consuming 99.9% CPU. It'll build eventually, but it takes a very long time, even if it was just built. If you can click on the build log in time you'll see that XCode freezes for a few minutes, but stuff is happening - then the UI will update and you'll see it's done a few things (checking dependencies, building the build graph, etc), then the UI hangs again for awhile. EVENTUALLY it'll finish, but even then XCode is VERY sluggish. This doesn't happen if I switch to the smaller dependency projects. I can build those over and over. If I Force Quit the report always has "ExplorableContent" type stuff going on. It seems like it's gotten bogged down in updating the logging/report info in the Report navigator" (which is set to Local).

XCode is obviously completely unusable like this, and I can't go back to 14.

Any suggestions?

I exported the build logs from the first (fast) and second (slow) runs. The first one has this:

**Target dependency graph (29 targets) GatherProvisioningInputs CreateBuildDescription

Build description signature: e3e7763fa99d2653ef158e7946eecdf3 Build description path: /Users/paul/Library/Developer/Xcode/DerivedData/.../Build/Intermediates.noindex/XCBuildData/XXX.xcbuilddata ** But the second one does NOT have the Build description lines.

I eventually figured out what was happening.

One of my targets linked against a universal static library. The x86_64 side had some additional functions that were used by the Intel side of the code, but they were not present in the arm64 side. With XCode 14, there was never any complaint about this.

Apparently starting with XCode 15, the linker would give a warning for every function found in the x86_64 side that didn't have an arm64 version - even if the arm64 code never used that functions at all.

All in all, there were over 17 THOUSAND of these completely benign warnings, and I couldn't find a way to turn them off. They were overloading the Report navigator, which caused XCode to hang constantly, probably while refreshing that view.

Switching to a compatible shared library instead resolved the issue,

Upgraded from XCode 14->15.1, now XCode hangs during build
 
 
Q