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
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
Install KXBuild
Install WSL, then restart your computer
PS> wsl --installInstall 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 | bashInstalls to ~/kxbuild inside Ubuntu by default.
Check the install
Open a new Ubuntu terminal (run wsl in PowerShell) and run the command below.
$ kxbuild doctorWhen 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
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
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 | iexInstalls to %USERPROFILE%\kxbuild by default.
Check the install
Open a new PowerShell window and run the command below.
PS> kxbuild doctorWhen every check passes, you are ready to develop. If the iOS SDK is saved in another folder, run kxbuild doctor <folder>.
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
Install KXBuild
$ curl -fsSL https://www.kxbuild.net/install.sh | bashInstalls to ~/kxbuild by default. The installer asks first, so you can enter another absolute path such as /opt/kxbuild.
Check the install
Open a new terminal and run the command below.
$ kxbuild doctorWhen every check passes, you are ready to develop. If the iOS SDK is saved in another folder, run kxbuild doctor <folder>.
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
WindowsSwift 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
WindowsInstall 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
WindowsNeeded 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
Needed when your project has .metal shaders. Most projects don't need it.
Next steps
kxbuild command line
Reads Xcode projects and Swift packages directly and builds an .ipa in one command. It fits into CI pipelines too.
Certificates and signing
Builds work without a certificate, but they will not install on a device. Put your .p12 and .mobileprovision in the certificate folder and every build is signed automatically.