Swift Build is now the default engine for the Swift Package Manager.
Although Swift serves as Apple's primary language for macOS and iOS application development, the open-source community continues to expand its reach—driving its adoption as a multi-platform language or even a cross-platform one in fields beyond user interface design.
Tuesday’s Swift 6.4 release continued that work.
A developer can write a program in Swift and Swift Build will automatically download and install the needed dependencies, testing them for compatibility.
The merger also unifies the Swift developer experience regardless of platform.
With this integration, a developer can run through the entire build process in their own environment, be it Apple’s Xcode IDE or a command line, and all the steps will be exactly the same for a Linux, macOS, or Windows app.
Sweetening the deal, the integrated package comes with a tool to generate an SBOM for each app, listing all the dependencies in either the SPDX or CycloneDX format.
In a way, Swift is following the lead of Rust’s Cargo and Go’s command line, both of which run as unified toolchains, as does Bun for JavaScript.
The Swift Package Manager, created by Apple in 2015, is a command line automation and dependency management tool.
Most notably, SwiftPM works well with the Swift Package Index, a search service for Swift artifacts created in 2020 and acquired by Apple in June.