Swift project build process is extremely slow after upgrading to 16.3

For an initial launch of Xcode, the GatherProvisioningInputs usually takes 60 seconds for a simple project. Subsequent build is fast though.

But the build process seems got stuck at VeryModule of the MyFramework target, which usually takes 15 seconds.

This happens to me too, and seems to have been reported a few times here and elsewhere (e.g. StackOverflow and individual blog posts), but Apple seems yet to address, let alone fix, the issue.

With 16.4RC, GatherProvisioningInputs only takes 0.1 seconds.

But VeryModule of the MyFramework still takes more than 16 seconds for a clean/build.

BTW, my system is M1 Mac mini.

Swift project build process is extremely slow after upgrading to 16.3
 
 
Q