Xwift

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.

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 exposing PlatformInfo.current (operating system, architecture, pointer width) and greeting().
  • xwift-hello: an executable that prints a greeting such as Hello from Xwift on linux-x86_64 (64-bit)!.
  • XwiftCoreTests: tests using both XCTest and swift-testing.
TargetXwift toolchainProof of conceptRunner used
Linux x86_64 (Ubuntu 24.04)In progressBuilt in PoCubuntu-24.04, swift:6.4.1-noble
Linux arm64Planned——
macOSPlannedBuilt in PoCmacos-15
WindowsPlannedBuilt in PoCwindows-2022
WebAssembly (WASI)PlannedBuilt in PoCubuntu-24.04, wasmtime 38.0.1
AndroidRoadmapRoadmap—
iOSRoadmapRoadmap—

The proof of concept uses stock swift.org toolchains. The Xwift toolchain has not been released on any platform.

What is planned

  • xwift CLI: 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.

On this page