Xwift

Targets

The state of the Xwift toolchain on each platform, how the proof of concept was built there, and what is still on the roadmap.

Two things are tracked per target. The Xwift toolchain column shows the toolchain itself: “Available” means a build has been released and can be downloaded from Install, and “Planned” means it has not been built yet. Xwift 6.4.1 is available for macOS (Apple silicon), Linux (x86_64 and aarch64) and Windows x64.

The other columns cover the proof of concept. “Built in PoC” means that the package was built, its tests were run (where noted) and the xwift-hello executable was run on that target with pinned stock swift.org toolchains.

TargetXwift toolchainProof of conceptBuildTestRun
Linux x86_64 (Ubuntu 24.04)AvailableBuilt in PoC✓✓✓
Linux arm64Available————
macOSAvailableBuilt in PoC✓✓✓
WindowsAvailableBuilt in PoC✓✓✓
WebAssembly (WASI)PlannedBuilt in PoC✓—✓ (wasmtime)
AndroidRoadmapRoadmap———
iOSRoadmapRoadmap———

Linux x86_64

  • Xwift toolchain: Available as a .deb, an .rpm and a .tar.gz. See Install.
  • Runner: ubuntu-24.04 inside the official swift:6.4.1-noble container
  • Steps: swift build -c release, swift test --parallel, swift run -c release xwift-hello

Linux arm64

  • Xwift toolchain: Available as a .deb, an .rpm and a .tar.gz for aarch64. See Install.
  • Proof of concept: Not built or tested on arm64 yet.

macOS

  • Xwift toolchain: Available for Apple silicon as a .pkg and a .tar.gz. There is no x86_64 (Intel) build yet. See Install.
  • Runner: macos-15
  • Proof of concept toolchain: Swift 6.4.1 installed with swiftly
  • Steps: swift build -c release, swift test --parallel, swift run -c release xwift-hello

Windows

  • Xwift toolchain: Available for x64 as an installer. See Install.
  • Runner: windows-2022
  • Proof of concept toolchain: 6.4.1-RELEASE via compnerd/gha-setup-swift@v0.3.0
  • Steps: swift build -c release, swift test, swift run -c release xwift-hello

WebAssembly (WASI)

  • Xwift toolchain: Planned.
  • Runner: ubuntu-24.04 inside swift:6.4.1-noble
  • SDK: swift-6.4.1-RELEASE_wasm, installed with a pinned checksum
  • Runtime: wasmtime 38.0.1
  • Steps:
swift sdk install "$WASM_SDK_URL" --checksum "$WASM_SDK_CHECKSUM"
swift build -c release --swift-sdk swift-6.4.1-RELEASE_wasm --product xwift-hello
out=$(wasmtime .build/release/xwift-hello.wasm)
echo "$out" | grep -q "wasi-wasm32"

Web means WASI, for now

The “Web” target today is WebAssembly with the WASI interface, run outside the browser with wasmtime. Running in a browser (JavaScript interop, DOM access) is on the roadmap.

Android

Roadmap

Android is not built or tested yet. PlatformInfo has an android case so the code is ready to report it, but no Android build exists.

iOS

Roadmap

iOS is not built or tested yet. PlatformInfo has an iOS case, but no iOS build exists. iOS support is planned alongside the UI framework.

On this page