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.
| Target | Xwift toolchain | Proof of concept | Build | Test | Run |
|---|---|---|---|---|---|
| Linux x86_64 (Ubuntu 24.04) | Available | Built in PoC | ✓ | ✓ | ✓ |
| Linux arm64 | Available | — | — | — | — |
| macOS | Available | Built in PoC | ✓ | ✓ | ✓ |
| Windows | Available | Built in PoC | ✓ | ✓ | ✓ |
| WebAssembly (WASI) | Planned | Built in PoC | ✓ | — | ✓ (wasmtime) |
| Android | Roadmap | Roadmap | — | — | — |
| iOS | Roadmap | Roadmap | — | — | — |
Linux x86_64
- Xwift toolchain: Available as a
.deb, an.rpmand a.tar.gz. See Install. - Runner:
ubuntu-24.04inside the officialswift:6.4.1-noblecontainer - Steps:
swift build -c release,swift test --parallel,swift run -c release xwift-hello
Linux arm64
- Xwift toolchain: Available as a
.deb, an.rpmand a.tar.gzfor aarch64. See Install. - Proof of concept: Not built or tested on arm64 yet.
macOS
- Xwift toolchain: Available for Apple silicon as a
.pkgand 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-RELEASEviacompnerd/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.04insideswift: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
RoadmapAndroid 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
RoadmapiOS is not built or tested yet. PlatformInfo has an iOS case, but no iOS build exists. iOS support is planned alongside the UI framework.