SDKs for cross-compiling Darwin code on Linux.
Prerequisites:
Steps:
- Download and install/extract Xcode 16.0 or higher
- Use
unxip
to extract Xcode if you're on Linux.
- Use
- Run
./build.sh [developer dir]
.- developer dir: this should be the path to
Xcode.app/Contents/Developer
. On macOS, you can omit this argument (or passauto
) to let the script infer it.
- developer dir: this should be the path to
Find the output at output/darwin-linux-$(arch).artifactbundle
.
Prerequisites:
- Swift 6.0 toolchain (https://swift.org/download)
darwin.artifactbundle
built for your host OS (see Building)
swift sdk install output/darwin-linux-$(arch).artifactbundle
swift build --swift-sdk arm64-apple-ios