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

发布:0.1.1 (#15)

Qinghe Li63729d0275f0
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6e3b2c2..098c665 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,20 +6,23 @@ All notable changes to this project are documented here. The format is based on
## [Unreleased]
+## [0.1.1] - 2026-11-04
+
### Added
-- macOS (Apple Silicon) support: build from source and run as a regular user with the system usbmuxd, no Xcode needed. Verified on macOS 26.6.2 with an iPhone 15 Pro Max (iOS 27.0.1), including alongside Finder. CI builds and tests on macOS. See the new macOS guide.
+- macOS (Apple Silicon) support: build from source and run as a regular user with the system usbmuxd; no Xcode needed. See the new macOS guide.
### Changed
-- MCP tool descriptions now say when to use each tool instead of its siblings, what it returns and how it behaves (cold launch vs. resume, force-quit, swipe inertia), every parameter has a description, and every tool carries MCP annotations (title, read-only, destructive, idempotent). Tool names, parameters and results are unchanged.
+- MCP tool descriptions now explain when to use each tool, what it returns and how it behaves; every parameter is documented and every tool carries MCP annotations. Tool names, parameters and results are unchanged.
+- Release binaries are named `iphone-control-vX.Y.Z-linux-<arch>.tar.gz`.
### Fixed
-- The daemon no longer gets stuck on "bad device" after the phone disconnects for a few seconds (unplugging, USB-C power renegotiation): it now notices that usbmuxd gave the phone a new device number and reconnects. This affected setups using the system usbmuxd (macOS, Linux source installs); the Docker image restarts its own usbmuxd and already recovered.
-- `doctor` on macOS no longer reports "no Apple device on USB" while the phone is connected, and its fix hints use `launchctl` instead of `systemctl`.
-- `home` and `lock` did nothing on an iPhone 12 mini (iOS 26.4.1) while reporting success, and auto-unlock could not wake a dark screen. Home is now pressed as an IOHID AC Home event, falling back to the XCTest button if the home screen doesn't come up; lock presses the power key over IOHID, falling back to WebDriverAgent's lock. Auto-unlock alternates the two ways of waking the screen.
-- When auto-unlock can't bring up the passcode keypad, the message now mentions StandBy (a phone charging on its side), which hides the keypad.
+- `home` and `lock` had no effect on some phones (seen on an iPhone 12 mini, iOS 26.4.1), and auto-unlock couldn't wake a dark screen there.
+- After a disconnect of a few seconds, setups using the system usbmuxd (macOS, Linux source installs) got stuck on "bad device"; they now reconnect by themselves.
+- `doctor` on macOS no longer reports "no Apple device on USB", and its hints use macOS commands.
+- When auto-unlock can't bring up the passcode keypad, the message mentions StandBy, which hides the keypad.
## [0.1.0] - 2026-11-02
@@ -37,5 +40,6 @@ First public release.
- Docker image (single binary plus Debian's usbmuxd, not privileged) with a generated third-party license list, published to `ghcr.io/derrors/iphone-control` for linux/amd64 and linux/arm64.
- Running without Docker, from source or from the prebuilt Linux binaries (x86_64, aarch64): as a regular user with the system usbmuxd, XDG data and socket paths, the unsigned WebDriverAgent downloaded and checksum-verified before the first signing, `mcp-config` printing a direct command, and a systemd user service.
-[Unreleased]: https://github.com/Derrors/iphone-control/compare/v0.1.0...HEAD
+[Unreleased]: https://github.com/Derrors/iphone-control/compare/v0.1.1...HEAD
+[0.1.1]: https://github.com/Derrors/iphone-control/compare/v0.1.0...v0.1.1
[0.1.0]: https://github.com/Derrors/iphone-control/releases/tag/v0.1.0
diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md
index 1899c30..ea87561 100644
--- a/CHANGELOG.zh-CN.md
+++ b/CHANGELOG.zh-CN.md
@@ -6,20 +6,23 @@
## [Unreleased]
+## [0.1.1] - 2026-11-04
+
### 新增
-- 支持 macOS(Apple Silicon):从源码编译,以普通用户运行,用系统自带的 usbmuxd,不需要 Xcode。已在 macOS 26.6.2 + iPhone 15 Pro Max(iOS 27.0.1)上验证,开着 Finder 也正常。CI 增加 macOS 编译和测试。新增 macOS 使用指南。
+- 支持 macOS(Apple Silicon):从源码编译,以普通用户运行,用系统自带的 usbmuxd,不需要 Xcode。见新增的 macOS 使用指南。
### 变更
-- MCP 工具描述补充了何时用这个工具而不是相近的工具、返回什么、具体行为(冷启动还是切回前台、强制结束、滑动惯性),每个参数都有说明,每个工具都带 MCP 注解(标题、只读、破坏性、幂等)。工具名、参数和返回结果不变。
+- MCP 工具描述说明了何时用、返回什么、具体行为,每个参数都有说明,每个工具都带 MCP 注解。工具名、参数和返回结果不变。
+- Release 里的二进制压缩包改名为 `iphone-control-vX.Y.Z-linux-<架构>.tar.gz`。
### 修复
-- 手机断开几秒又接上(拔插、USB-C 供电重新协商)后,守护进程不再卡在「bad device」:发现 usbmuxd 换了设备编号就重新连接。受影响的是用系统 usbmuxd 的部署(macOS、Linux 从源码运行);Docker 镜像自己重启 usbmuxd,原来就能恢复。
-- macOS 上 `doctor` 不再在手机已连接时报「USB 上没有 Apple 设备」,修复提示改用 `launchctl` 而不是 `systemctl`。
-- iPhone 12 mini(iOS 26.4.1)上 `home`、`lock` 报成功但没有效果,自动解锁也点不亮熄灭的屏幕。Home 改为发 IOHID 的 AC Home 事件,没回到主屏再用 XCTest 的按键补一次;锁屏改为经 IOHID 按电源键,没锁上再用 WebDriverAgent 的锁屏。自动解锁轮流用这两种方式唤醒屏幕。
-- 自动解锁调不出密码键盘时,提示里说明待机显示(手机横放充电时出现)会挡住键盘。
+- 部分手机上 `home`、`lock` 没有效果(在 iPhone 12 mini、iOS 26.4.1 上遇到),自动解锁也点不亮熄灭的屏幕。
+- 用系统 usbmuxd 的部署(macOS、Linux 从源码运行)断开几秒后会卡在「bad device」,现在能自己重连。
+- macOS 上 `doctor` 不再误报「USB 上没有 Apple 设备」,修复提示改用 macOS 的命令。
+- 自动解锁调不出密码键盘时,提示里说明待机显示会挡住键盘。
## [0.1.0] - 2026-11-02
@@ -35,5 +38,6 @@
- `setup`、`doctor`、`status`、`mcp-config`、`wda-bridge`、`notify-test` 命令。
- Docker 镜像(非 privileged,linux/amd64、linux/arm64);也可不用 Docker,从源码或预编译二进制以普通用户运行,附 systemd 用户服务。
-[Unreleased]: https://github.com/Derrors/iphone-control/compare/v0.1.0...HEAD
+[Unreleased]: https://github.com/Derrors/iphone-control/compare/v0.1.1...HEAD
+[0.1.1]: https://github.com/Derrors/iphone-control/compare/v0.1.0...v0.1.1
[0.1.0]: https://github.com/Derrors/iphone-control/releases/tag/v0.1.0
diff --git a/Cargo.lock b/Cargo.lock
index c7c8df3..ea79243 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1967,7 +1967,7 @@ dependencies = [
[[package]]
name = "ictl-daemon"
-version = "0.1.0"
+version = "0.1.1"
dependencies = [
"anyhow",
"base64 0.23.1",
@@ -1987,7 +1987,7 @@ dependencies = [
[[package]]
name = "ictl-device"
-version = "0.1.0"
+version = "0.1.1"
dependencies = [
"idevice",
"plist",
@@ -2001,7 +2001,7 @@ dependencies = [
[[package]]
name = "ictl-mcp"
-version = "0.1.0"
+version = "0.1.1"
dependencies = [
"anyhow",
"ictl-protocol",
@@ -2012,7 +2012,7 @@ dependencies = [
[[package]]
name = "ictl-protocol"
-version = "0.1.0"
+version = "0.1.1"
dependencies = [
"libc",
"serde",
@@ -2022,7 +2022,7 @@ dependencies = [
[[package]]
name = "ictl-sign"
-version = "0.1.0"
+version = "0.1.1"
dependencies = [
"plist",
"plume_core",
@@ -2035,7 +2035,7 @@ dependencies = [
[[package]]
name = "ictl-unlock"
-version = "0.1.0"
+version = "0.1.1"
dependencies = [
"ictl-wda",
"serde_json",
@@ -2047,7 +2047,7 @@ dependencies = [
[[package]]
name = "ictl-wda"
-version = "0.1.0"
+version = "0.1.1"
dependencies = [
"base64 0.23.1",
"ictl-device",
@@ -2258,7 +2258,7 @@ dependencies = [
[[package]]
name = "iphone-control"
-version = "0.1.0"
+version = "0.1.1"
dependencies = [
"anyhow",
"clap",
diff --git a/Cargo.toml b/Cargo.toml
index ac7e2a3..f8f13e9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -15,7 +15,7 @@ members = [
exclude = ["vendor"]
[workspace.package]
-version = "0.1.0"
+version = "0.1.1"
edition = "2024"
# rmcp 3.8 要求 1.88;Impactor/idevice 用 edition 2024
rust-version = "1.88"