Skip to content

v0.3.3

Latest

Choose a tag to compare

@github-actions github-actions released this 29 Nov 01:31
· 1 commit to main since this release
09a8758

English

Several devices at once: give each device its own instance, so two agents can each drive their own phone without affecting each other.

Upgrade notes

  • With named instances, don't downgrade to 0.3.2 or earlier: remove every named instance first (iphone-control instance remove <name>) (#232).
  • On an iOS 17–26 device, the WebDriverAgent that 0.3.2 left running in the background is started again the first time 0.3.3 controls it, so the device may ask once for its passcode ("Enable UI Automation"); after that, a restart attaches to it again when the phone confirms it is the same process, and starts it again otherwise (#232).
  • If an older version had disabled auto-unlock, every device stays disabled after the upgrade until you re-enable each one with iphone-control unlock-reset --device <UDID> (#231).

New

  • iphone-control instance add <name> --device <UDID> gives another device its own daemon, control socket, control page port and services; instance list (or status --all) shows every instance and instance remove takes one away. Device commands (status, devices, doctor, mcp, …) run against an instance with --instance <name> (or IPHONE_CONTROL_INSTANCE); update covers every instance, and a named instance's services are managed by instance add and instance remove, not service; --instance <name> mcp-config prints the command that registers an MCP server controlling only that device (#232).
  • Instances share the Apple ID, signing certificate, passcodes and the control page login; a device belongs to one instance at a time, and the others show which instance controls it. While named instances exist the default instance stays on the device selected for it (#232, #233).
  • iphone-control update updates every instance together, refuses while any of them runs a task, and restarts each as it was; iphone-control update recover finishes an interrupted update (#232).
  • iphone-control login --reprovision-anisette (or --confirm-anisette-origin) records where the Anisette state came from, which the first instance add asks for after a login by an older version (#232).

Improvements

  • When auto-unlock fails on one device, only that device stops unlocking automatically; the others keep going. iphone-control unlock-reset re-enables the controlled device, --device <UDID> another one (#231).

中文

同时控制多台设备:每台设备一个实例,两个 agent 可以各控制一台手机,互不影响。

升级注意事项

  • 有命名实例时不要降级到 0.3.2 或更早的版本:先用 iphone-control instance remove <名字> 移除所有命名实例(#232)。
  • iOS 17–26 的设备上,0.3.2 在后台留下的 WebDriverAgent 会在 0.3.3 第一次控制它时重新启动,设备可能会要你输一次锁屏密码(「Enable UI Automation」);之后重启时,手机能确认是记录里的那个进程才直接接上,否则重新启动(#232)。
  • 旧版本停用过自动解锁的,升级后每台设备都保持停用,用 iphone-control unlock-reset --device <UDID> 逐台恢复(#231)。

新功能

  • iphone-control instance add <名字> --device <UDID> 给另一台设备一个自己的守护进程、控制接口、控制台端口和服务;instance list(或 status --all)列出所有实例,instance remove 移除一个。设备相关的命令(status、devices、doctor、mcp 等)加 --instance <名字>(或设 IPHONE_CONTROL_INSTANCE)就作用于那个实例;update 一次处理所有实例,命名实例的服务由 instance add、instance remove 管,不用 service;--instance <名字> mcp-config 打印注册 MCP 服务的命令,注册后只控制那台设备(#232)。
  • 实例之间共用 Apple ID、签名证书、锁屏密码和控制台登录;一台设备同一时间只归一个实例,别的实例会标出它由哪个实例控制。有命名实例时,默认实例固定在给它选定的那台(#232、#233)。
  • iphone-control update 一起升级所有实例:任何一个实例有任务在进行时拒绝,升级后各实例按原来的状态启动;升级中途被打断时用 iphone-control update recover 收尾(#232)。
  • iphone-control login --reprovision-anisette(或 --confirm-anisette-origin)记下 Anisette 状态的来源;旧版本登录过的,第一次 instance add 会提示先做这一步(#232)。

改进

  • 一台设备自动解锁失败时只停用这一台,其他设备照常自动解锁;iphone-control unlock-reset 恢复正在控制的那台,--device <UDID> 指定别的设备(#231)。

Binaries / 二进制: macOS macos-arm64 (11+, Apple Silicon), macos-x86_64 (11+, Intel) · Linux linux-x86_64, linux-aarch64 (glibc 2.34+) · .deb amd64, arm64 (Debian 12+, Ubuntu 22.04+)

  • Script / 脚本: curl -fsSL https://github.com/Derrors/iphone-control/releases/download/v0.3.3/install.sh | sh
  • Homebrew: brew install Derrors/tap/iphone-control
  • Debian / Ubuntu: sudo apt install ./iphone-control_0.3.3_amd64.deb (or / 或 _arm64.deb)

Already installed? Run iphone-control update. / 已安装的运行 iphone-control update 升级。