/swift-sdk-darwin

Darwin Swift SDK for Linux (experimental)

Primary LanguageShellMIT LicenseMIT

swift-sdk-darwin

SDKs for cross-compiling Darwin code on Linux.

Building

Prerequisites:

Steps:

  1. Download and install/extract Xcode 16.0 or higher
    • Use unxip to extract Xcode if you're on Linux.
  2. 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 pass auto) to let the script infer it.

Find the output at output/darwin-linux-$(arch).artifactbundle.

Installing

Prerequisites:

swift sdk install output/darwin-linux-$(arch).artifactbundle

Usage

swift build --swift-sdk arm64-apple-ios