We have been running into a recurring issue causing our builds in Xcode to take significantly longer than expected. Sometimes when generating incremental builds, even ones with zero actual changes, the build can suddenly take 5-6 minutes. Almost all of this time is spent on the “planning swift module” step. In some cases, we’ve seen this issue cause the build to take longer than a clean build typically takes.
Our app has a very large number of individual modules, and the build output indicates this step can take up to 30 seconds for each one.
We originally made almost exclusive use of SPM to defines these local packages and their dependencies, but migrated to Tuist in the hopes that moving the code into Xcode projects with defined target would reduce or eliminate this issue, but we’ve been seeing it again, though I believe less often.
We are running Xcode 26 using the Swift 5 compiler mode. There is nothing in the build output that I can see when these steps are running. The build timeline can be seen below. In this specific example, a file was changed in the App target, but no code in the packages/modules were changed at all.
Has anyone else seen this issue? Does anyone know steps we can take to improve this issue?



