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. 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 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)AvailableBuilt in PoCubuntu-24.04, swift:6.4.1-noble
Linux arm64Available——
macOSAvailableBuilt in PoCmacos-15
WindowsAvailableBuilt 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 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

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

On this page