For readers upgrading, FYI the 6.0.1 toolchain might not work in Xcode 16.0 with e.g., SwiftUI library. It seems to work fine with some other dependencies.
Issue presented for me as follows
Failed to reconstruct type for
$s7SwiftUI20_ViewListCountInputsVD
Original type:
(struct_type decl="SwiftUICore (file)._ViewListCountInputs")
...
Pass '-Xfrontend -disable-round-trip-debug-types' to disable this assertion.
...
3. While evaluating request IRGenRequest(IR Generation for file ".../WebView.swift")
4. While emitting IR SIL function "@$s10WebViewKit0aB0V7SwiftUI0B0AadEP14_viewListCount6inputsSiSgAD01_bgH6InputsV_tFZTW".
for '_viewListCount(inputs:)' (in module 'SwiftUICore')
edit: On the command line, the suggested workaround enabled the build to complete:
swift build -Xswiftc -Xfrontend -Xswiftc -disable-round-trip-debug-types