Hi,
I have a weird bug with Swift 6.0.2 and XCode 16.1. I have a package that compiles well a Debug build, but a Release build never finishes.
It does compile with the flag -no-whole-module-optimization in Terminal
swift build -c release -Xswiftc -no-whole-module-optimization
But with that flag if I compile the full project and not just the package I get an error that dependencies are missing.
My Package is mostly generated code as it represents the data of an XML file. I split the package up to isolate the problem. The problem that is causing the compiler to stall is simply files that give a compliance to a few protocols (to allow me to represent the structs content on screen).
The weirdest thing to me is, I have multiple packages that are generated with the same generator and only this one is causing a problem It is the one with the most structures, but it's still just 116.
You can download the package here: https://www.TheKeptPromise.com/Packages/CompileProblem.zip
swift build -c release
does hang for me.
I hope you can instantly reproduce the bug and with a little luck it's easy to fix.
All the best
Christoph