Skip to content
ios-linuxPublic
forked from x86sim/x86sim

About

Run Apple's iOS Simulator on a regular Linux PC, no Mac required. Boots the real iOS 27 simulator by translating it on the fly, with graphics on your GPU.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

x86Sim

Apple's iOS Simulator on Linux. No Mac required.

Run the real iPhone, iPad, Apple TV, Apple Watch and Apple Vision Pro simulators on an ordinary x86-64 Linux PC. Build your app, run it, test it, debug it and ship it, without leaving Linux.

Latest release License: GPL-3.0-or-later Platform: Linux x86-64

Download · Quick start · What you can do · For AI agents · Documentation · vs Apple's Simulator

x86Sim on Linux: an iPhone 17 Pro running iOS 27.2 at its home screen, with its controls, memory, CPU and tools beside it

What is x86Sim?

Apple ships its device simulators for Macs only. x86Sim runs those same simulators, unmodified, on Linux.

One download gives you x86Sim's hub, in a window of its own or any browser tab. It fetches iOS straight from Apple, sets itself up, and boots a real simulated iPhone: the same home screen, the same Settings, Safari, Photos, Maps and Files, the same system frameworks your app links against. Then add an iPad, an Apple TV, an Apple Watch or an Apple Vision Pro, and run them all at once.

  • No Mac. Everything runs on your Linux PC, including building apps.
  • No Apple ID to get started. The simulators download from Apple's public catalogue, the one Xcode reads.
  • Not a lookalike. These are Apple's own simulator runtimes. In our coverage suite, which checks the public frameworks of the SDK one by one, x86Sim gave the same results as Apple's Simulator on a Mac on all four platforms (how it compares).
  • Free and open source, GPL-3.0-or-later.

Quick start

  1. Download x86sim-*-x86_64.AppImage from the latest release.
  2. Make it executable and run it:
    chmod +x x86sim-*-x86_64.AppImage
    ./x86sim-*-x86_64.AppImage
  3. Follow the Setup page. It checks your computer, downloads iOS 27.2 from Apple (about 8 GB), gets it ready and creates your first iPhone.

That's it. On most distributions nothing is installed outside your home directory and no root is needed. Where unprivileged user namespaces are blocked (Ubuntu's default, for example), Setup asks for your password once.

For an Apple TV, an Apple Watch or an Apple Vision Pro, download tvOS, watchOS or visionOS on the Versions page, then choose Add device.

What you can do

An iPhone running Apple Maps in x86Sim, with its live memory and CPU use per process An iPad Pro in landscape running Apple Maps over Manhattan in x86Sim
Run real iOS. Every device boots to its home screen with Apple's stock apps. Click to tap, drag to swipe, type on your keyboard, paste from your Linux clipboard. 85 device models. iPhone 11 to iPhone 18 Pro Max, every current iPad, Apple TV 4K, Apple Watch and Apple Vision Pro. Run several at once; each has its own apps and data.
The dual-screen iPhone Duo in 3D, half open, its inner screen live, with the hinge controls beside it An Apple Vision Pro running in x86Sim, showing its Home View in a room
Fold the iPhone Duo. The dual-screen iPhone opens and closes on a hinge slider, in 3D, with both screens live. Check your layouts in every pose. Apple Vision Pro on your desktop. Look and pinch with the mouse, open the Home View with the Digital Crown, and run visionOS apps in a rendered room.
An Apple TV running tvOS Settings in x86Sim, with its Siri Remote beside it An Apple Watch Ultra showing its app grid in x86Sim
Apple TV, with a Siri Remote on screen and your arrow keys. Apple Watch, with a Digital Crown and side button.

Build, run and ship apps from Linux

x86Sim includes a complete app toolchain, so the whole loop happens on one machine:

x86sim dev setup                      # install the toolchain into your home directory (no root)
x86sim dev new HelloApp               # a new SwiftUI app
x86sim dev run HelloApp               # build it, install it on a device and launch it
  • Your stack works. Swift and SwiftUI, Objective-C, React Native and Expo, Flutter, Kotlin Multiplatform, .NET for iOS, Rust (Tauri, Dioxus, Bevy), Capacitor, Cordova, NativeScript, Godot and Unity projects, and existing Xcode projects.
  • Install what you already have. Drop a simulator build, an .ipa or an .xcarchive on a device.
  • Go to a real iPhone and the App Store. Pair an iPhone, install and debug on it, then sign and upload to TestFlight and App Store Connect, all from Linux.

See Building and shipping apps.

Test and debug like you would in Xcode

  • XCTest and XCUITest runs with per-test results and JUnit XML for CI.

  • LLDB with breakpoints, stepping and Swift values. A CPU profiler in the style of Instruments' Time Profiler.

  • Web Inspector for Safari and your app's web views. A network inspector that can mock responses.

  • Accessibility Inspector: click any element to see what VoiceOver sees, and run an audit that finds missing labels, small touch targets and low contrast, with a fix for each.

  • Everything simctl does: push notifications, location and routes, dark mode, Dynamic Type, status bar overrides for clean screenshots, Face ID, screen recording, and more.

  • In CI: a GitHub Action boots devices on Linux runners (CI), with the same steps for GitLab CI and self-hosted machines. Set a device's environment in one command, compare screens with baselines, and start from saved devices.

See Testing and Debugging, profiling and Web Inspector.

Share any device by link

An x86Sim iPhone shared by link and opened watch-only in another browser, showing Safari with live CPU and memory figures

The hub runs in your browser, so every device is a tab with live video, sound, touch and keyboard. Send a link to a teammate, a designer or a client over Tailscale or a Cloudflare tunnel: watch-only, or with full control. It works from a phone's browser too, with real multi-touch.

For AI agents

x86Sim was built so a coding agent can do what a human tester does: run the app, look at the screen, tap through it and check the result.

An AI agent reading an iPhone's screen as text and tapping an element by its reference

  • The screen as text. One call returns every element on screen with a stable reference. The agent taps, types and scrolls by reference and gets the next screen back, so it doesn't need a screenshot for every step. Text drawn as pixels, in games for example, is read by OCR.
  • More than 100 tools over MCP. Build, install, launch, read logs and crashes, run tests, debug, profile, inspect the network and the web view, audit accessibility, set location, send a push.
  • Devices on demand. A pool keeps devices booted. An agent takes one, uses it and hands it back clean, so several agents and CI jobs can work in parallel.
  • A human in the loop. Open the agent's device in your browser and watch, or take over.
claude mcp add x86sim -- /path/to/x86sim-*.AppImage mcp

An agent on another machine reaches the same tools over HTTP through x86sim serve (Tailscale, cloudflared), with an agent link or by signing in with OAuth (claude.ai, ChatGPT): MCP over HTTP.

Agents that work from a shell can use the skill file in skills/x86sim/SKILL.md. See x86Sim for AI agents.

Requirements

OS x86-64 Linux with glibc 2.39 or newer: Ubuntu 24.04+, Debian 13, Fedora 39+, Arch and derivatives, NixOS (with appimage-run, see NixOS and containers); also in podman / docker containers
CPU x86-64 with SSE4.1, POPCNT and CX16 (any PC from the last decade)
GPU A Vulkan GPU and driver: NVIDIA (proprietary driver), AMD or Intel (Mesa). Optional: without one, or if you prefer, devices draw on the CPU
Memory 8 GB minimum, 16 GB recommended
Disk 45 GB free while iOS downloads and unpacks

Everything else is inside the AppImage. It updates itself, on a stable or a pre-release channel.

Supported devices

Device System Models Input
iPhone iOS 27 iPhone 11 to iPhone 18 Pro Max, and the dual-screen iPhone Duo Touch and gestures, keyboard, Home, lock and volume
iPad iPadOS 27 iPad, iPad mini, iPad Air, iPad Pro Touch and gestures, keyboard, pointer
Apple TV tvOS 27 Apple TV 4K Siri Remote on screen; arrow keys, Return and Escape
Apple Watch watchOS 27 Series 9 to 12, SE 3, Ultra 2 to 4 Touch, Digital Crown, side button
Apple Vision Pro visionOS 27 At 4K or at 1080p Look and pinch with the mouse, Digital Crown

The Versions page in x86Sim: simulators installed on this computer and those available from Apple

Simulators come straight from Apple's own catalogue. Each copy is downloaded on your machine and is never redistributed. iOS 27.2 is the default; the Versions page lists the other releases Apple offers.

How it works

x86Sim downloads a simulator from Apple and runs it as it is. Three things make that possible on a Linux PC:

  • A macOS-compatible system layer (Darling) loads Apple's programs and answers their system calls. Each device runs in its own container.
  • A translator (dynarmic) turns the simulator's arm64 code into x86-64 code. Most of it is translated ahead of time, once, so devices boot and apps launch quickly.
  • Metal on Vulkan (metal2vulkan) draws Apple's graphics on your GPU.

Small stand-ins replace what a Mac would provide around the simulator: the display, input, audio, networking and file services. ARCHITECTURE.md has the full picture.

What doesn't work yet

x86Sim is young. The simulators boot, stock and third-party apps run, and the tools above work. Known gaps:

  • App Store downloads don't run. They are encrypted for the device they were bought on. Use a development, ad-hoc or enterprise build, or build from source.
  • Some of Instruments is missing: there is a CPU profiler, but no Allocations or Leaks, no memory graph and no view debugger.
  • Hardware the simulator doesn't have: no camera, accelerometer, Apple Pencil, external displays or CarPlay. An Apple Watch can't be paired with an iPhone.
  • Sound plays in the browser view; on the desktop it is opt-in (X86SIM_AUDIO=1).
  • Apple Intelligence (FoundationModels) needs a Mac to answer, as it does in Apple's own simulator.

PARITY.md compares every area with Apple's Simulator, gaps included, and says how each was checked.

Documentation

Using x86Sim The hub (x86Sim's window, also in any browser), the x86sim command line, device builds, the device pool, sharing
Building and shipping apps The app toolchain: every supported framework, real devices, TestFlight and the App Store
Testing XCTest, XCUITest and the Accessibility Inspector
Debugging, profiling and Web Inspector LLDB, the CPU profiler, Web Inspector
x86Sim for AI agents The screen as text, actions, and every MCP tool
x86Sim and Apple's Simulator A feature-by-feature comparison, and how it was verified
Architecture How it works, part by part; Metal; wire formats
Developing x86Sim Building from source, the repository layout, releases
Press The launch announcement, images and video

Building from source

git clone --recursive https://github.com/x86sim/x86sim.git
cd x86sim
cp x86sim.env.example x86sim.env

make darling-install                             # the system layer; asks for sudo
make mtlvk                                       # Metal on Vulkan
linux/arm64jit/install.sh                        # the arm64 translator
(cd tools/launcher && cargo build --release)     # x86sim (cli/x86sim links to it): the commands and the hub
cli/x86sim open                                  # the hub in an app window

Everything builds on Linux. DEVELOPMENT.md covers the dependencies and day-to-day use.

License and credits

x86Sim is free software, licensed under the GNU General Public License v3.0 or later. Bundled components keep their own licenses; see NOTICE.

x86Sim builds on:

Each fork carries its changes on a branch named x86sim.

Thanks to agent-sim for ideas on driving phones from AI agents.

Apple's simulator runtimes, SDKs and Xcode are not included and are never redistributed. Apple, iPhone, iPad, Apple TV, Apple Watch, Apple Vision Pro, iOS, Xcode and Metal are trademarks of Apple Inc. x86Sim is not affiliated with or endorsed by Apple.

About

Run Apple's iOS Simulator on a regular Linux PC, no Mac required. Boots the real iOS 27 simulator by translating it on the fly, with graphics on your GPU.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages