Introduction
Xwift is a cross-platform toolchain for the Swift language, based on Swift 6.4.1. Here is what exists today and what is planned.
Xwift is a universal cross-platform toolchain for the Swift language: a toolchain, a CLI, a UI framework and system APIs, targeting macOS, Windows, Linux, Android, iOS and the Web, based on Swift 6.4.1.
Getting started
Build, test and run the proof of concept on your machine.
Install
Swift 6.4.1 via swiftly, the WebAssembly SDK and wasmtime.
Targets
Exactly what is verified on each platform, and what is not.
CLI (planned)
The planned xwift command-line interface.
Project status: proof of concept
Xwift is at a very early stage, and nothing has been released. The Xwift toolchain is in progress on Linux x86_64, where it has been built privately. macOS, Windows and Linux arm64 are planned. A proof-of-concept SwiftPM package was built, tested and run on macOS, Linux, Windows and WebAssembly (WASI) with stock swift.org tools. Everything else in these docs is marked Planned or Roadmap.
What exists today
The proof of concept is a regular SwiftPM package, Xwift, with:
XwiftCore: a library exposingPlatformInfo.current(operating system, architecture, pointer width) andgreeting().xwift-hello: an executable that prints a greeting such asHello from Xwift on linux-x86_64 (64-bit)!.XwiftCoreTests: tests using both XCTest and swift-testing.
| Target | Xwift toolchain | Proof of concept | Runner used |
|---|---|---|---|
| Linux x86_64 (Ubuntu 24.04) | In progress | Built in PoC | ubuntu-24.04, swift:6.4.1-noble |
| Linux arm64 | Planned | — | — |
| macOS | Planned | Built in PoC | macos-15 |
| Windows | Planned | Built in PoC | windows-2022 |
| WebAssembly (WASI) | Planned | Built in PoC | ubuntu-24.04, wasmtime 38.0.1 |
| Android | Roadmap | Roadmap | — |
| iOS | Roadmap | Roadmap | — |
The proof of concept uses stock swift.org toolchains. The Xwift toolchain has not been released on any platform.
What is planned
xwiftCLI:xwift new,xwift build --target,xwift run --target. See CLI.- Xwift toolchain builds for macOS, Windows and Linux arm64.
- Android and iOS targets.
- UI framework: declarative UI rendered natively per platform.
- System APIs: portable access to files, networking, windows and devices.
- Performance work and AI-assisted tooling.
None of these exist yet.
Xwift is an independent project and is not affiliated with or endorsed by Apple Inc. Swift and the Swift logo are trademarks of Apple Inc.