FREE RESOURCE · FROM THE "XTOOL" REEL
Build and install an iPhone app without a Mac, using xtool
By Hammad Yousuf · 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
On Windows, install WSL and set up USB passthrough (USBIPD) so your iPhone can be bound to WSL. Run every step below inside WSL.
Install the Swift 6.4 toolchain for your Linux distribution from swift.org, then check it with
swift --version.terminalswift --versionMake sure
usbmuxdis installed so the computer can talk to the iPhone. Many distros ship it; on Ubuntu or Debian:terminalsudo apt-get install usbmuxdIn 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.Download the latest xtool AppImage for your architecture and put it on your PATH:
terminalcurl -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/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 toXcode.xip.terminalxtool setup
Setup on macOS
Install Xcode and launch it once (xtool uses its iOS SDK and toolchain).
Install xtool with Homebrew:
terminalbrew install xtool-org/tap/xtoolLog in once:
terminalxtool setup
Build your first app
xtool new MenuAppcreates a Swift package from xtool's default template.terminalxtool new MenuAppAsk Claude for the code (prompt below) and put the files in the project.
From inside the project folder run
xtool dev. It builds the app, then waits for your iPhone.terminalcd MenuApp xtool devPlug in the iPhone and tap Trust. If xtool asks for Developer Mode, switch it on and run
xtool devagain. It signs and installs the app.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.
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.
Official links
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
- Five open-source AI repos: practical setup links
- Small-change checklist: scope one edit so an AI coding tool changes one thing, not 24 files
- Reverse-engineer a feature with Claude Code: REA setup and 3 prompts
- All free resources from the reels
- More free prompts from my reels
- Follow @withhammad.ai on Instagram for the next one
- Subscribe to @with.hammad on YouTube