FREE RESOURCE · FROM THE "XTOOL" REEL

Build and install an iPhone app without a Mac, using xtool

By · 26 November 2026

xtool is a free, open-source (MIT) command-line tool that builds, signs and installs iOS apps from Linux, from Windows through WSL, or from macOS. You write Swift (or have Claude write it), plug in your iPhone and run xtool dev.

Before you start: A free Apple ID only covers testing on your own phone: installs expire after 7 days. The App Store still needs Apple's 99 USD a year developer program. Checked 26 November 2026. Read all four limits

What you need

  • A computer running Linux, or Windows with WSL (macOS works too, with Xcode installed)
  • An iPhone and a USB cable
  • An Apple ID. Without the paid developer program, xtool logs in with your password through private Apple APIs, so its docs suggest a throwaway Apple ID, not your main account
  • Claude (or any assistant) to write the Swift code

Setup on Linux, or on Windows through WSL

  1. On Windows, install WSL and set up USB passthrough (USBIPD) so your iPhone can be bound to WSL. Run every step below inside WSL.

  2. Install the Swift 6.4 toolchain for your Linux distribution from swift.org, then check it with swift --version.

    terminal
    swift --version
  3. Make sure usbmuxd is installed so the computer can talk to the iPhone. Many distros ship it; on Ubuntu or Debian:

    terminal
    sudo apt-get install usbmuxd
  4. In a browser, download Xcode 27.1 (Xcode.xip) from Apple's developer downloads (Apple ID login and licence acceptance). Note where it is saved: xtool uses it once to build the iOS SDK.

  5. Download the latest xtool AppImage for your architecture and put it on your PATH:

    terminal
    curl -fL "https://github.com/xtool-org/xtool/releases/latest/download/xtool-$(uname -m).AppImage" -o xtool
    chmod +x xtool
    sudo mv xtool /usr/local/bin/
  6. Run xtool setup. Pick a login mode (API key if you pay for the Apple Developer Program, password for any Apple ID), then give it the path to Xcode.xip.

    terminal
    xtool setup

Setup on macOS

  1. Install Xcode and launch it once (xtool uses its iOS SDK and toolchain).

  2. Install xtool with Homebrew:

    terminal
    brew install xtool-org/tap/xtool
  3. Log in once:

    terminal
    xtool setup

Build your first app

  1. xtool new MenuApp creates a Swift package from xtool's default template.

    terminal
    xtool new MenuApp
  2. Ask Claude for the code (prompt below) and put the files in the project.

  3. From inside the project folder run xtool dev. It builds the app, then waits for your iPhone.

    terminal
    cd MenuApp
    xtool dev
  4. Plug in the iPhone and tap Trust. If xtool asks for Developer Mode, switch it on and run xtool dev again. It signs and installs the app.

  5. On the phone, trust the developer profile in Settings > General > VPN & Device Management, then open the app.

Prompt for Claude

First SwiftUI app for xtool.

prompt · claude
Write a small SwiftUI iOS app as a Swift Package that xtool can build.
App: a menu for my cafe with a list of items (name, price) and a detail screen.
Give me every file with its path, ready to paste into a project made with `xtool new`.
Target iOS 17. No third-party packages.

Limits to know before you start

  • A free Apple ID is for testing on your own devices: installs and their profiles expire after 7 days (rebuild and reinstall), up to 3 devices, up to 3 apps per device, up to 10 App IDs per 7 days.

  • The App Store, TestFlight and App Store Connect need the Apple Developer Program: 99 USD a year.

  • Apple's Xcode and Apple SDKs Agreement authorises the SDK only on Apple-branded hardware running macOS. Building from Linux or Windows is outside that grant, so treat the non-Mac route as a learning and testing setup, not an Apple-approved one.

  • "One command" is true after the setup above, not before it.

Sources checked

  • xtool is MIT-licensed and describes itself as a cross-platform Xcode replacement for Linux, Windows and macOS; latest stable release 1.24.0 (26 Oct 2026), with 2.0 in beta. Source ↗
  • Windows support is through WSL with USBIPD; Swift 6.4, usbmuxd, Xcode 27.1 .xip, the AppImage install and the two login modes. Source ↗
  • macOS: install Xcode, then brew install xtool-org/tap/xtool and xtool setup. Source ↗
  • xtool new creates the project; xtool dev builds, signs and installs it; Trust, Developer Mode and the VPN & Device Management step. Source ↗
  • Free Apple account limits: profiles expire after 7 days, 3 devices, 3 apps per device, 10 App IDs per 7 days. Source ↗
  • Apple Developer Program costs 99 USD per membership year and is needed for the App Store. Source ↗
  • Xcode and Apple SDKs Agreement covers use on Apple-branded hardware running macOS only. Source ↗

About the video: the reel is presented by an AI avatar of Hammad Yousuf.

Keep going