Skip to main content

Install KXBuild

One command sets up your iOS development environment. Then build your app on Windows, Linux or macOS with the terminal, AI agent or IDE you like, using Flutter, React Native, Unity, Swift, Objective-C or any other stack you prefer. You can also follow us on GitHub for updates. Questions? Email us at admin@kxbuild.net.

Install with WSL

1

Download the iOS SDK

Download the two iOS SDK files, iPhoneOS.platform.zip and toolchain.zip, or the Xcode installer (.xip), and save them to your Downloads folder. Keep them zipped. More about the iOS SDK

2

Install KXBuild

Install WSL, then restart your computer

PS> wsl --install

Install Ubuntu

PS> wsl --install --web-download Ubuntu --location D:\wslubuntu

--location sets where the WSL distribution is installed. Run wsl --list --online to see the available versions.

Open an Ubuntu terminal (run wsl in PowerShell) and run the command below to install KXBuild. The installer lets you choose the install location.

$ curl -fsSL https://www.kxbuild.net/install.sh | bash

Installs to ~/kxbuild inside Ubuntu by default.

3

Check the install

Open a new Ubuntu terminal (run wsl in PowerShell) and run the command below.

$ kxbuild doctor

When every check passes, you are ready to develop. If the iOS SDK is saved in another folder, run kxbuild doctor <folder>.

Install directly on Windows

1

Download the iOS SDK

Download the two iOS SDK files, iPhoneOS.platform.zip and toolchain.zip, or the Xcode installer (.xip), and save them to your Downloads folder. Keep them zipped. More about the iOS SDK

2

Install KXBuild

Open PowerShell and run the command below. It installs Swift, the Visual Studio Build Tools and other dependencies, which can take anywhere from a few minutes to half an hour. Follow the prompts to choose the install location and approve admin access.

PS> irm https://www.kxbuild.net/install.ps1 | iex

Installs to %USERPROFILE%\kxbuild by default.

3

Check the install

Open a new PowerShell window and run the command below.

PS> kxbuild doctor

When every check passes, you are ready to develop. If the iOS SDK is saved in another folder, run kxbuild doctor <folder>.

This option installs the Visual Studio C++ Build Tools, which take 10–20 GB of disk space. Windows also limits paths to 260 characters by default, so builds can fail on long paths. We recommend the WSL option.

Install the VS Code extension

If you develop and debug in VS Code, install the extension after KXBuild above; it finds KXBuild on its own. Skip this step if you only use the command line or an AI assistant.

VS Code Marketplace

Search for KXBuild in the VS Code Extensions view and install it. Updates arrive automatically.

Open VSX

Cursor, Windsurf, VSCodium and other editors: search for KXBuild in the Extensions view and install it. Updates arrive automatically.

Offline install

Download the .vsix file, drag it into the editor window, then restart the editor. For machines without internet access.

Installed through WSL? Open your project with code . in the Ubuntu terminal, then install the extension on the WSL side. Extension setup guide

Required programs and components

KXBuild uses the programs and components below. The install script installs any that are missing, except the optional ones. They are fairly large, so you can also download and install them yourself beforehand.

Visual Studio C++ build tools

Windows

Swift on Windows depends on it, about 10–20 GB. Tick the Desktop development with C++ workload and keep the components ticked by default on the right.

Swift toolchain

Windows

Install Swift 6.4.0, a 1.7 GB download. Don't install it to a folder like C:\Program Files that only an administrator can write to; the default location or a folder on drive D is fine. We recommend ticking NoAsserts under Options in the installer.

Apple Devices

Windows

Needed to run and debug on a real device on Windows. Install it, open Apple Devices and make sure it shows your iOS device, then you can run and debug on it.

Metal Developer Tools

Windows Optional

Needed when your project has .metal shaders. Most projects don't need it.

Next steps