what's new in build system

Asked on 06/16/2025

1 search

In the recent WWDC sessions, several updates were introduced to the build system, particularly focusing on explicitly built modules. Here are the key highlights:

  1. Explicitly Built Modules: This feature provides improved parallelism, better diagnostics, and faster debugging. Explicit modules are enabled by default for C and Objective-C code, and for Swift, you need to opt in. This change allows the build system to have better control over module build tasks, optimizing the build pipeline and improving build efficiency and reliability. The build process is split into three phases: scanning, building modules, and building the original source code. This separation allows for more precise and deterministic sharing of modules.

  2. Swift Build: Apple has open-sourced Swift Build, a powerful and extensible build engine used by Xcode and Swift Playground. It is being incorporated into the Swift Package Manager to unify the build experience across Swift Open Source Toolchains and Xcode. This new implementation supports all platforms in the Swift ecosystem, including Linux, Windows, and Android.

  3. Build System Improvements: The build system now makes more informed scheduling choices, avoiding execution lanes being blocked by compilation tasks waiting for a module to be built. This results in more efficient builds and faster debugging, as the debugger can reuse already built modules.

For more detailed insights, you can refer to the session Demystify explicitly built modules (08:37) which covers the module build log and optimizations. Additionally, the session What’s new in Xcode (27:50) discusses the builds in Xcode.

what's new in build system | Ask WWDC