Skip to content

Control a real USB-connected iPhone from Linux (no Mac, no paid developer account) and expose it to AI agents as MCP tools

21.2 KB
Raw Blame

Changelog

English | 简体中文

What changed in each release, one line per change. Versions follow Semantic Versioning; while at 0.x a minor version may break things, so read Upgrade notes first.

Unreleased

0.2.14 - 2026-11-24

New

  • Intel Macs (macOS 11+) can install with the one-line script or Homebrew and upgrade with iphone-control update; these builds haven't been tested on a real Intel Mac yet, so reports are welcome (#182).

Fixes

  • Other devices on the same Wi-Fi can no longer reach WebDriverAgent on the phone; a WebDriverAgent started by an older version restarts once after upgrading (#180).

0.2.13 - 2026-11-24

Fixes

  • Automatic unlock works on iPhones set to English, French, German, Spanish and other non-Chinese languages; it used to give up without entering a digit (#174).

0.2.12 - 2026-11-24

New

  • Agents can read across several screens of a list and stop at a matching row without tapping it (#170).
  • Tap, swipe and text input results now distinguish a sent input from one that never went out or whose delivery is uncertain (#170).

0.2.11 - 2026-11-23

Fixes

  • iphone-control login and the setup wizard no longer fail with HTTP 403 from Apple before the password is checked. The X-MMe-Client-Info header sent to Apple was lowercased (mac os x), which Apple now rejects (#171).

0.2.10 - 2026-11-22

Upgrade notes

  • MCP tools now refuse an argument they don't take, and do nothing, instead of ignoring it. A misspelt argument, or one from a newer version, used to run the call with the default and report success: iphone_wait_for with state: "disappeared" answered that the text had appeared (#158). The error names the arguments the tool takes. This includes then on tools that don't list it, and on the steps of iphone_batch (the batch's own then applies).

New

  • iphone_type_text supports replace: true (empty text empties the field) and verifies the full field value before pressing Return. With native control, when it fails, the old text is left unselected; through WDA (iOS 26 and earlier, or ICTL_IOS_BACKEND=wda) the field is cleared first, so a failure there says the old text is gone (#162).
  • iphone_list_elements reports the match count and whether limit truncated the list in its structured result (#159).
  • iphone_wait_for can wait for text to disappear without mistaking an incomplete screen read for success (#159).

0.2.9 - 2026-11-18

Fixes

  • With native control (iOS 27), reading the screen no longer keeps failing until the phone is replugged when the phone's accessibility service stops answering; it is restarted on its own (#152).
  • With native control (iOS 27), automatic unlocking no longer fails with "couldn't bring up the passcode keypad" while the keypad is on screen (#154).
  • With native control (iOS 27), an app launched right after Home no longer goes back to the home screen, as it often did for the first actions after the daemon started (#155).
  • With native control (iOS 27), reading the screen no longer keeps failing when the phone's accessibility service reads every app as empty; it is restarted on its own then too (#156).

0.2.8 - 2026-11-18

New

  • iphone_tap takes count to tap the same point several times in one go, so double taps and entries that need quick repeated taps work (#141).
  • iphone_batch takes one_gesture: a run of coordinate taps, such as keys on a keyboard, goes in one gesture, about twice as fast (#143).
  • iphone_swipe takes hold to hold still before moving, so home-screen icons and other things that need a long press first can be dragged (#144).
  • iphone_tap_element takes scroll (down / up) and max_scrolls: when the element isn't on screen, it scrolls and looks again, and taps it once found (#147).

Improvements

  • When the same action leaves the screen unchanged again and again, the result says how many times in a row and to try something else (#145).
  • An action that had to unlock the phone first says so, and how long it took (#135).

Fixes

  • Elements in an app's in-app browser are no longer placed one navigation bar too low, so tapping them by text hits them (#139).
  • Launching a system app for the first time no longer hangs for a minute behind its privacy notice and restarts WDA; it says at once that the notice is in the way (#148).
  • With native control (iOS 27), a row under the floating search bar of Settings is no longer tapped through the bar, which opened the search (#150).
  • iphone_tap_element that tapped nothing no longer claims, with then, that the action may not have taken effect, and answers sooner (#149).
  • A few slow WDA requests no longer add up to a needless WDA restart (#140).

0.2.7 - 2026-11-15

Upgrade notes

  • Phones on iOS 27 and later switch to native control. To keep WebDriverAgent, set ICTL_IOS_BACKEND=wda in ~/.config/iphone-control/env (#123).
  • Building from source needs Rust 1.89 (#119).
  • ICTL_WDA_DETACHED is gone: WDA is always launched in the background now. Left in the settings file, it does nothing (#125).

New

  • iOS 27 and later work without WebDriverAgent: no Apple ID, no signing, ready in seconds. iOS 26 and earlier are unchanged (#123).
  • Chinese and other non-ASCII text can be typed while WebDriverAgent is down. Tap "Allow Paste" when the phone asks (#118).
  • Actions with then say whether the screen changed, so an agent can tell when a tap did nothing (#121).

Improvements

  • WDA starts on a locked phone too, and keeps running across daemon restarts and updates (#125).
  • Dependencies updated (#119).

Fixes

  • Ctrl+C in setup menus is no longer ignored after a half-typed key on a busy machine (#131).
  • iphone-control status on a phone under native control shows "native" instead of asking you to install WDA (#127).
  • service stop and service uninstall also end a WDA launched in the background, and each phone keeps its own (#124).
  • Text pasted on the phone no longer reaches your Mac through Universal Clipboard (#122).
  • With a notification banner up, elements are read from the app instead of the banner (#121).
  • Arrow keys in setup menus no longer turn into letters on a busy machine (#120).
  • A tap or key that WDA didn't answer in time no longer lands on the screen later (#118).
  • Screens with very many elements read faster, and the result says when the list was cut short (#118).
  • The first tap after a pause no longer waits for the screen size to be measured (#110).
  • The control page retries H.264 or the phone's video after a slow start instead of staying on MJPEG (#109).
  • Swipes on the control page return sooner (#108).
  • The first Home after a daemon restart is no longer slow on some devices (#107).

0.2.6 - 2026-11-14

New

  • Low-bandwidth mode for the control page's picture, in Settings: about half the traffic (#104, #105).

Improvements

  • The control page reuses its connections, so taps and checks over Wi-Fi answer several times faster (#103).

Fixes

  • The phone's video on the control page no longer stutters over Wi-Fi (#100).
  • Taps and Home on the control page no longer wait behind the page's background checks (#101).
  • Home on the control page responds in about half the time (#102).
  • The control page picks up the phone's video again after the phone restarts its stream (#104).

0.2.5 - 2026-11-14

Upgrade notes

  • --url to another machine needs https:// (with --ca for a self-signed certificate). http://127.0.0.1 still works (#89).
  • A read-only token no longer unlocks the phone (#89).

Improvements

  • The login page matches the control page, with its own light/dark and language switches (#97).
  • Ready about 10 s sooner after the daemon or WDA restarts (#90).
  • While waiting for the "Enable UI Automation" passcode, the prompt is up on the phone most of the time (#90).
  • A stuck WDA is restarted after about 35 s instead of 90 s (#90).
  • Commands, MCP calls and the control page wait for a restarting daemon instead of failing (#90).
  • Too many wrong login tokens no longer lock out the right one (#89).

Fixes

  • Without WDA, devices below iOS 27 say at once that taps and swipes need it (#98).
  • A confirmation no longer undoes your pause or takeover, and two at once are asked in turn (#88).
  • A step the agent sent just before you paused, took over or handed back no longer runs after it (#88).
  • After you hand back, the agent has to look at the screen before acting (#88).
  • Removing or replacing a login token closes everything opened with it within 5 s (#89).
  • The control page's agent works in a private directory instead of /tmp (#89).
  • The control page keeps accepting connections after errors and drops stalled ones (#88).
  • Task logs cut short by a power failure are cleaned up (#88).

0.2.4 - 2026-11-14

Upgrade notes

  • The control page and its /mcp need a login. Run iphone-control viewer token and open the link it prints. HTTP MCP clients send Authorization: Bearer <token>. The CLI and stdio MCP are unaffected (#79).
  • With --lan, the page is HTTPS on the local network. Check the certificate fingerprint from service status the first time (#76).
  • ICTL_AGENT_GATE and ICTL_AGENT_TOKEN are replaced by IPHONE_CONTROL_TASK_TOKEN (#64).

New

  • AI tasks for any agent: iphone-control task run -- <command>, steered with task list, events, pause, resume, takeover, handback, stop, approve and reject (#64).
  • Limit a task to some apps with task run --app or the App button on the control page. Anywhere else, each step waits for you (#69, #70).
  • An agent can't pause, approve or otherwise control its own task (#75).
  • The control page picks up running tasks after a reload, including ones started elsewhere (#64).
  • viewer --lan opens the control page to the local network over HTTPS (#72, #76).
  • MCP over HTTP at /mcp on the control page's port (#77).
  • Named and read-only login tokens: viewer token add <name> [--read-only] (#80).
  • Use another machine's phone: mcp --url bridges to its /mcp, and task … --url runs and controls tasks there (#80, #82).
  • service viewer install runs the control page as a background service (#74).
  • Arrow-key setup menus, and shell completions with iphone-control completions <shell> (#71).

Improvements

  • Tasks are kept by the daemon. While one runs, other clients can look but not act (#64).
  • The picture zooms only with its − / + buttons, not by pinching (#68).

Fixes

  • Locking takes about 2 s instead of 10 s on some iPhones, and now works on iPads below iOS 27 (#59, #63).
  • A WDA that still answers /status but nothing else is restarted within about 30 s (#60, #62).
  • A failed lock says what each way of locking did, instead of "WDA just dropped" (#61).
  • On iOS 27, system alerts missing from the phone's video are drawn on the picture and can be tapped (#67).
  • Task summaries on the control page are formatted instead of raw Markdown (#66).
  • Every connected device's screen size is remembered, not only the last one's (#86).
  • Notifications name the device instead of always saying "iPhone" (#85).
  • Updates no longer fail now and then with "Text file busy" (#81).
  • task run keeps the command's own exit code after task finish (#78).
  • Holding an arrow key in setup menus no longer prints escape codes (#73).

0.2.3 - 2026-11-13

Upgrade notes

  • From 0.2.2, upgrade once by hand: iphone-control update apply (script install), brew upgrade iphone-control, or sudo apt install ./<file>.deb. After that, iphone-control update does it (#51).
  • update rollback is gone. A new version that doesn't start is still replaced by the old one automatically (#52).

New

  • iphone-control update checks for and installs the new stable release, through the script's service, Homebrew or the .deb. It asks first, and --yes skips the question (#51, #52).
  • Debian packages are signed, and the signature is checked before installing (#52).

Fixes

  • WDA is no longer killed every 1–2 minutes while the control page shows H.264 or MJPEG (#55).
  • Touches on the control page respond quickly again (#54).
  • iphone-control status | head -1 and similar no longer crash with "Broken pipe" (#53).

0.2.2 - 2026-11-12

Upgrade notes

  • New script installs use install.sh from the signed GitHub Release and need Python 3 and OpenSSL 3. To move an older script install, uninstall it with its own script first. Settings and device data are kept (#44).

New

  • Update checks: iphone-control update check, or About & updates on the control page (#44).
  • Script installs upgrade with update apply, and can install signed patches automatically with update policy auto-patch (#44).
  • A redesigned control page that fits wide and narrow windows, with device names and frames (#45).

Fixes

  • Taps and touches are refused after a device switch, rotation or lost picture, instead of landing in the wrong place (#45).
  • Closed or frozen tabs release their picture connections (#45).

0.2.1 - 2026-11-12

New

  • On iOS 27 and later, the control page shows the phone's own video: HEVC, about 60 fps, native resolution (#42).
  • Elsewhere the picture is H.264 at about 1/15 of the traffic, hardware-encoded where possible (#42).
  • Experimental ICTL_WDA_DETACHED=1 launches WDA in the background, even while the phone is locked (#41).

Fixes

  • On iOS 27 and later, WDA is no longer killed every few minutes while the control page is open (#42).

0.2.0 - 2026-11-11

Upgrade notes

  • Docker is no longer released. Stop the container (docker compose down) and move to install.sh, Homebrew or the .deb.
  • To keep the Apple ID session, signed WDA and passcodes, copy the container's ./data to ~/.local/share/iphone-control first (how). The phone may ask to trust the computer again.
  • Settings move from .env to ~/.config/iphone-control/env.
  • The daemon no longer runs usbmuxd. On Linux, install the system one (sudo apt install usbmuxd), and unmask it if you masked it for the container.
  • Register the MCP server again: the first-run guide does it, or run the command iphone-control mcp-config prints.

New

  • One-line installs: install.sh for macOS (Apple Silicon) and Linux, Homebrew, and a .deb for Debian 12+ / Ubuntu 22.04+, each with a background service.
  • First-run guide: run iphone-control after installing. setup --reconfigure redoes any part of it.
  • iphone-control service install|uninstall|start|stop|restart|status.
  • AI tasks on the control page: type a task and Claude Code or Codex does it on the phone. Pause, take over or stop it at any time, and it asks before paying, deleting or sending.
  • A revoked signing certificate is detected and the device re-signed automatically.
  • The control page follows device switches, explains why there is no picture, and can sign and install WDA.

Improvements

  • New control page: AI assistant, live screen with zoom, and a device panel with apps and elements. In English or Chinese.
  • On iOS 27 and later the picture works like a touchscreen: about 20 ms per tap instead of 530 ms.
  • The picture runs at about 50 fps.

Fixes

  • The mouse wheel works again on the control page below iOS 27.
  • lock and home are much faster on newer iPhones, and taps no longer take 26 s while something animates.
  • Home pressed during an app transition on iPad is retried.
  • After a restart, the daemon goes on with the last device that was ready.
  • iphone-control viewer starts even before the daemon has picked a device.
  • Clearer hints when WDA fails with unexpected response, Web Inspector is off, or the daemon can't be reached.
  • iphone_app_logs no longer returns Info lines.

0.1.5 - 2026-11-10

New

  • English: IPHONE_CONTROL_LANG=en for tools, CLI, logs and notifications.
  • iphone-control viewer: watch and control the phone in a browser.
  • Developer tools, with IPHONE_CONTROL_DEV_TOOLS=1: app logs, crash reports, installing and uninstalling apps, and Safari's Web Inspector.

Fixes

  • Scroll bars are left out of element lists in every language.
  • iphone_uninstall_app refuses partial or ambiguous names.
  • App installs and re-signing no longer upload at the same time.
  • A stuck daemon exits so its service restarts it.
  • Memory no longer grows with the HID fallback, and usbmuxd.log is rotated.

0.1.4 - 2026-11-07

Improvements

  • ICTL_DDI_DIR is never written to; only the default cache is downloaded again after three failed mounts.
  • debug subcommands need --features debug-cmds.

Fixes

  • Security: zip updated to 9.4.1 for GHSA-m665-v7pm-7grj and related advisories. Exposure was small.
  • An action whose connection dropped is no longer repeated over HID.
  • Calls to the phone, usbmuxd and Apple have time limits, so the daemon can't hang on them.
  • Re-signing is checked within a minute after reconnecting or switching devices.
  • Cancelling an MCP call stops it, including the rest of an iphone_batch. A batch also stops if the device changes.
  • A timed-out HID session no longer leaves the screen stream running.
  • A stale WDA can't look ready early, and errors say when WDA just dropped.
  • iPad: auto-unlock works when WDA was started while locked, and sidebar rows can be tapped by name again.
  • doctor no longer counts an Apple keyboard as a phone.

0.1.3 - 2026-11-07

Upgrade notes

  • Auto-unlock passcodes are now per device. Before upgrading, connect only the device whose passcode was saved, or clear it and set each one with passcode set --device <UDID>.
  • Device selection is shared by all clients, and select choices survive restarts.
  • In landscape without WDA, don't turn the device to the other landscape side.

New

  • Choose which device to control: iphone_list_devices and iphone_select_device, or devices and select.
  • Auto-unlock passcodes per device.

Fixes

  • Screen size follows rotation: no stretched screenshots or missing elements, and iPad landscape coordinates are right.
  • HID fallback taps and swipes work in landscape, and are refused when the orientation is unknown.
  • Auto-unlock on Touch ID devices taps "Use Passcode" first and checks the keypad.
  • Control no longer jumps to another device when usbmuxd reorders its list.
  • doctor, status and re-signing read the current device's own WDA profiles.
  • setup waits for the device before signing, and open_url waits for the app before returning.
  • Switching devices no longer reuses the previous device's app list and screen size.
  • usbmuxd is no longer restarted every 30 s for a missing IPHONE_UDID, and a second device is picked up in the container.

0.1.2 - 2026-11-04

New

  • Prebuilt macOS binary (Apple Silicon, macOS 11+). It isn't notarized; see the macOS guide.

0.1.1 - 2026-11-04

New

  • macOS (Apple Silicon) support, no Xcode needed.

Improvements

  • Tool descriptions explain when to use each tool and what it returns.
  • Release files are named iphone-control-vX.Y.Z-linux-<arch>.tar.gz.

Fixes

  • home, lock and waking for auto-unlock work on phones such as the iPhone 12 mini.
  • Setups using the system usbmuxd reconnect after a short disconnect.
  • doctor works on macOS.

0.1.0 - 2026-11-02

First public release.

New

  • A daemon that owns the phone: pairing, Developer Mode, disk image, tunnel and WebDriverAgent, recovering from unplugging and reboots.
  • MCP server with 15 tools: screenshots, elements, taps, swipes, typing (Chinese too), buttons, apps, URLs, waiting and batches.
  • HID fallback while WDA is down.
  • WDA signed with a free Apple ID and re-signed before it expires.
  • Bark and Telegram notifications, and optional auto-unlock.
  • setup, doctor, status and mcp-config.
  • Docker image and prebuilt Linux binaries.