swift sdk
Perform operations on Swift SDKs.
Overview
By default, Swift Package Manager compiles code for the host platform on which you run it. Swift 6.1 introduced SDKs (through SE-0387) to support cross-compilation.
SDKs are tightly coupled with the toolchain used to create them. Supported SDKs are distributed by the Swift project with links on the installation page for macOS and Linux, and included in the distribution for Windows.
Additionally, the Swift project provides the tooling repository swift-sdk-generator that you can use to create a custom SDK for your preferred platform.