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: “In progress” means it has been built privately and not released, and “Planned” means it has not been built yet. Nothing has been released.

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)In progressBuilt in PoC✓✓✓
Linux arm64Planned————
macOSPlannedBuilt in PoC✓✓✓
WindowsPlannedBuilt in PoC✓✓✓
WebAssembly (WASI)PlannedBuilt in PoC✓—✓ (wasmtime)
AndroidRoadmapRoadmap———
iOSRoadmapRoadmap———

Linux x86_64

  • Xwift toolchain: In progress. It has been built privately and has not been released.
  • 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

Planned

The Xwift toolchain is planned. Neither the toolchain nor the proof of concept is built or tested on arm64 yet.

macOS

  • Xwift toolchain: Planned.
  • Runner: macos-15
  • 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: Planned.
  • Runner: windows-2022
  • 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