Increased compile time in Xcode 16

After upgrading to Xcode 16, I have experienced some issues with the compilation time of my project.

I noticed that a new step has been added called Scan dependencies of, which was not present in Xcode 15.

Additionally, there is a new CompileAssetCatalogVariant step. The ValidateEmbeddedBinary step has started to take ~15 seconds, compared to about 5 seconds in Xcode 15.

Build Timing Summary

I would appreciate any recommendations on what I can do with that :pray:

Hey :wave:

Do you have explicit modules turned on or off?

Getting a build timeline could and comparing it with how it looked like on Xcode 15 could also help shed some light on this.

I’d recommend this blog post to read up on the topic of explicitly built modules.

1 Like

Hey :wave:

I returned with my feedback. Initially, my issue wasn’t with local builds, but rather with our CI system. However, I had overlooked this detail. The problem was actually with the xcodebuild formatter that Fastlane uses. By simply changing xcpretty to xcbeautify, I resolved the issue, and our compile timings returned to being acceptable for us :sunglasses:

I’d recommend this blog post to read up on the topic of explicitly built modules.

Moreover, explicitly built modules feature helps us reduce the compilation time by 2-3 seconds, but only in Xcode 16.1. In Xcode 16.0, we didn’t experience any benefits :man_shrugging:

1 Like