Which host builds which target¶
Not every operating system can build every target. Check this before you pick a target.
The table below is generated from kivyforge's own host checks, the same ones
every verb that acts on a target enforces. To read it on your machine,
run kivyforge capabilities, or kivyforge capabilities --json for a
machine-readable version.
Host support matrix¶
| Target | macOS | Linux | Windows |
|---|---|---|---|
ios |
Yes | No | No |
macos |
Yes | No | No |
linux |
No | Yes (x86_64 only) | No |
windows |
No | No | Yes |
android |
Yes | Yes | Yes |
How to read this¶
- Yes means the host can build that target.
- No means it cannot.
lock,build,run,package,open,statusandupgradeall fail fast withKF-HOST-INCAPABLE(exit code 3) instead of producing something broken. initis not gated: it writes the configuration for any target, so onepyproject.tomlcan describe every platform.doctoris not gated either: on the wrong host it runs and reports why the host cannot build the target.
The key constraints:
- iOS builds require macOS with Xcode. There is no way to build an iOS app from Windows or Linux.
- macOS apps build on macOS. The only target architecture is
arm64(Apple Silicon). - Android builds run on any desktop host (Windows, macOS, or Linux) that has a JDK, the Android SDK, and the Android NDK installed.
- Windows apps build on Windows, and Linux apps build on x86_64 Linux.
A Raspberry Pi is a target only: add
"aarch64"to[tool.kivy.linux].archson an x86_64 Linux machine and copy the AppImage to the Pi. kivyforge refuses to build on an aarch64 Linux host because that host is not tested.
A Yes says the operating system can build the target. Whether the toolchain
is installed is a separate question: kivyforge doctor -p PLATFORM answers it.
Replace PLATFORM with the target name.
Release packages for iOS and Android, and Linux packages for aarch64, are
byte-compiled by a CPython that runs on the machine that builds. You don't
install it: the lock pins one for each build host, and the first release build
on a machine downloads it.
Target selection versus host capability¶
These are two independent questions:
- What are you building for? That is target selection, covered in Choose a target platform.
- Can this machine build it? That is host capability, the table above.
What's next¶
- Choose a target platform.
- Install kivyforge, then build for a target you can run here.
- Diagnose a failing build.