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
Xwift 6.4.1 installers for macOS, Linux and Windows, with checksums.
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. The Xwift 6.4.1 toolchain is available for macOS (Apple silicon), Linux (x86_64 and aarch64) and Windows x64. See Install. 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) | Available | Built in PoC | ubuntu-24.04, swift:6.4.1-noble |
| Linux arm64 | Available | — | — |
| macOS | Available | Built in PoC | macos-15 |
| Windows | Available | 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 6.4.1 toolchain is available for macOS on Apple silicon, Linux on x86_64 and aarch64, and Windows x64. All builds are unsigned.
What is planned
xwiftCLI:xwift new,xwift build --target,xwift run --target. See CLI.- Xwift toolchain builds for macOS x86_64 (Intel) and WebAssembly.
- 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.