Install the VS Code iOS Extension: Marketplace, VSIX or WSL
Install from the Marketplace, Open VSX, a VSIX or in WSL, point the extension at your toolchain, see when auto-update and doctor run, and find the walkthrough.
Last updated
Installing the VS Code iOS extension takes two steps: install the kxbuild toolchain from the install page, then search for KXBuild in the Extensions view and install the extension. On an offline machine, drag in the .vsix file; in WSL, install the extension on the WSL side. The extension finds the toolchain at startup, updates it when a new version is out and runs doctor. Then follow the walkthrough on the Welcome page to create or open a project and debug iOS apps on your iPhone.
How do I install the VS Code iOS extension?
The extension needs the kxbuild toolchain, so install that first from the install page. If the extension can't find a toolchain at startup, the KXBuild view shows two buttons, Install KXBuild and Locate Installation….
| Method | Steps |
|---|---|
| Marketplace | Search for KXBuild in the Extensions view (Ctrl+Shift+X) and install it. Updates arrive automatically. |
| Open VSX | Cursor, Windsurf, VSCodium and other editors that use Open VSX: search for KXBuild in the Extensions view, or install it from Open VSX. Updates arrive automatically. |
| Local VSIX | Drag the .vsix file into the editor window and restart VS Code. Use this on offline machines. |
| WSL | Install the WSL extension, open the project from an Ubuntu terminal with code ., then install the KXBuild extension on the WSL side from the Extensions view. |
Flutter projects also need the Dart extension. You're prompted to install it the first time you debug.
How do I reach my WSL project files from Windows?
When you develop in WSL, both your projects and the kxbuild folder live in the WSL file system. To view, copy or edit those files from Windows, use either of these:
- In a WSL terminal, go to the folder and run explorer.exe . to open it in Windows Explorer
- Type \\wsl.localhost\Ubuntu\home\<user> into the Explorer address bar (replace Ubuntu with your distribution name) to browse your WSL home folder
In the other direction, Windows drives appear in WSL under /mnt/c/, /mnt/d/ and so on. Builds are faster when the project lives in the WSL file system (for example ~/projects) rather than under /mnt. For where to put signing certificates and passwords, see signing certificates in WSL.
What if the extension can't find the toolchain?
If you installed from the install page, there's nothing to set. The extension finds the toolchain on its own. If you installed to a custom folder or have more than one installation, click Locate Installation… in the KXBuild view and pick one.
How does the VS Code iOS extension update, and when should I run doctor?
At startup the extension checks for a newer kxbuild. If there is one, it updates in a terminal and then runs doctor. When the extension and kxbuild versions don't match, the view asks you to run doctor.
KXBuild: Doctor (fix environment) checks your environment, installs missing components and updates outdated ones. Run it with a project open and it also prepares that project, which Flutter, React Native, Expo, Kotlin Multiplatform and cocos2d-x projects need. Run it once after installing the toolchain or extension, the first time you open one of those projects, and whenever the extension asks you to.
Where do I start after installing the extension?
After you first install the extension, the Welcome page shows the Get Started with KXBuild walkthrough. It takes you through setting up the toolchain, creating or opening a project, and selecting a device to debug, the same steps as Get started with the KXBuild IDE.
When the walkthrough is done, the VS Code iOS extension is installed and set up. For the full path from a new project to on-device debugging and an .ipa, continue with iOS app development on Windows in VS Code.
Next steps
Create, open and import projects
Create projects in VS Code, open existing ones, add Swift package dependencies and app extensions such as widgets, and convert a Swift package into an app project. Loaded projects show up in the KXBuild view, ready to run with F5. A table at the end lists which folder to open for each project type.
Troubleshooting
Run kxbuild doctor first. Then look up your error message by category: install, project, signing, device, release or extension. Also covers where to find the logs.