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.2,Releases 提供 macOS 预编译二进制 (#16)

Qinghe Li9eef3aeeabca
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index cf6d7b5..2df6772 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -1,7 +1,7 @@
name: Release
# 推送 v* tag 时:多架构镜像推到 ghcr(各架构在原生 runner 上构建,不用 QEMU 模拟),
-# 附 SBOM 和构建来源证明;Linux 二进制和 sha256 附在 GitHub Release 上,发布说明取自 CHANGELOG.md 和 CHANGELOG.zh-CN.md。
+# 附 SBOM 和构建来源证明;Linux 和 macOS 二进制及 sha256 附在 GitHub Release 上,发布说明取自 CHANGELOG.md 和 CHANGELOG.zh-CN.md。
on:
push:
tags: ["v*"]
@@ -176,7 +176,7 @@ jobs:
echo "## 中文"; echo; echo "$zh"; echo
echo "---"; echo
echo "**Docker:** \`${IMAGE}:${version}\` (linux/amd64, linux/arm64)"; echo
- echo "**Binaries / 二进制:** \`linux-x86_64\`, \`linux-aarch64\` (glibc 2.34+)"
+ echo "**Binaries / 二进制:** \`linux-x86_64\`, \`linux-aarch64\` (glibc 2.34+), \`macos-arm64\` (macOS 11+, Apple Silicon)"
} > notes.md
- name: Create release
run: |
@@ -185,3 +185,38 @@ jobs:
gh release create "$GITHUB_REF_NAME" dist/* --title "$GITHUB_REF_NAME" --notes-file notes.md "${flags[@]}"
env:
GH_TOKEN: ${{ github.token }}
+
+ # macOS(Apple Silicon)二进制,Release 建好后再传上去:GitHub 的 macOS runner 经常排队,
+ # 排不上时(15 分钟后被取消)不拖住镜像和 Linux 二进制,重跑这个任务就能补上。
+ # 文件名里的 arm64 与 Mac 上 uname -m 一致。没有公证(要付费开发者账号):链接器自带 ad-hoc 签名能直接运行,
+ # 用终端 curl 下载不带隔离标记;浏览器下载的要去掉 com.apple.quarantine(见 macOS 指南)
+ macos-binary:
+ needs: release
+ runs-on: macos-latest
+ permissions:
+ contents: write
+ steps:
+ - uses: actions/checkout@v4
+ - uses: dtolnay/[email protected]
+ - uses: Swatinem/rust-cache@v2
+ with:
+ key: release-aarch64-apple-darwin
+ - run: cargo build --release --locked -p iphone-control
+ - name: Check
+ run: |
+ file target/release/iphone-control
+ codesign --verify --verbose target/release/iphone-control
+ target/release/iphone-control --version
+ # 不带 deploy/(systemd 服务文件,Mac 上用不到)
+ - name: Package
+ run: |
+ name="iphone-control-${GITHUB_REF_NAME}-macos-arm64"
+ mkdir -p "dist/$name"
+ cp target/release/iphone-control LICENSE THIRD_PARTY.md README.md README.zh-CN.md CHANGELOG.md CHANGELOG.zh-CN.md "dist/$name/"
+ cp .env.example "dist/$name/env.example"
+ tar -C dist -czf "dist/$name.tar.gz" "$name"
+ (cd dist && shasum -a 256 "$name.tar.gz" > "$name.tar.gz.sha256")
+ - name: Upload to the release
+ run: gh release upload "$GITHUB_REF_NAME" dist/*.tar.gz dist/*.tar.gz.sha256 --clobber
+ env:
+ GH_TOKEN: ${{ github.token }}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 098c665..ba2fbc0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,12 @@ All notable changes to this project are documented here. The format is based on
## [Unreleased]
+## [0.1.2] - 2026-11-04
+
+### Added
+
+- Prebuilt macOS binary (Apple Silicon, macOS 11+) in Releases: `iphone-control-vX.Y.Z-macos-arm64.tar.gz`. It isn't notarized; see the macOS guide if Gatekeeper blocks it.
+
## [0.1.1] - 2026-11-04
### Added
@@ -40,6 +46,7 @@ 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.1...HEAD
+[Unreleased]: https://github.com/Derrors/iphone-control/compare/v0.1.2...HEAD
+[0.1.2]: https://github.com/Derrors/iphone-control/compare/v0.1.1...v0.1.2
[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 ea87561..ad4efe1 100644
--- a/CHANGELOG.zh-CN.md
+++ b/CHANGELOG.zh-CN.md
@@ -6,6 +6,12 @@
## [Unreleased]
+## [0.1.2] - 2026-11-04
+
+### 新增
+
+- Releases 里提供 macOS 预编译二进制(Apple Silicon,macOS 11 以上):`iphone-control-vX.Y.Z-macos-arm64.tar.gz`。没有经过苹果公证,被 Gatekeeper 拦下时见 macOS 指南。
+
## [0.1.1] - 2026-11-04
### 新增
@@ -38,6 +44,7 @@
- `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.1...HEAD
+[Unreleased]: https://github.com/Derrors/iphone-control/compare/v0.1.2...HEAD
+[0.1.2]: https://github.com/Derrors/iphone-control/compare/v0.1.1...v0.1.2
[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/CONTRIBUTING.md b/CONTRIBUTING.md
index ca7705e..a63784c 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -83,7 +83,7 @@ The user guide at [derrors.github.io/iphone-control](https://derrors.github.io/i
1. Move the *Unreleased* entries in [CHANGELOG.md](CHANGELOG.md) and [CHANGELOG.zh-CN.md](CHANGELOG.zh-CN.md) under `## [x.y.z] - YYYY-MM-DD` and update the compare links at the bottom. Both files need the section — the release notes are built from the two (English, then Chinese) and the workflow fails if either is missing. Keep entries short: one line per user-visible change, no implementation details.
2. Set `version` in the root `Cargo.toml` (`[workspace.package]`) and run `cargo check --workspace` to update `Cargo.lock`.
-3. Commit, tag `vx.y.z`, push the tag. [`release.yml`](.github/workflows/release.yml) builds the amd64/arm64 images on native runners and pushes them to `ghcr.io/derrors/iphone-control` (tags `x.y.z`, `x.y`, `latest`; pre-releases such as `v0.2.0-rc.1` only get their own tag), builds the Linux binaries (`iphone-control-vx.y.z-linux-x86_64.tar.gz`, `…-linux-aarch64.tar.gz`), and creates the GitHub release from the two changelog sections.
+3. Commit, tag `vx.y.z`, push the tag. [`release.yml`](.github/workflows/release.yml) builds the amd64/arm64 images on native runners and pushes them to `ghcr.io/derrors/iphone-control` (tags `x.y.z`, `x.y`, `latest`; pre-releases such as `v0.2.0-rc.1` only get their own tag), builds the Linux binaries (`iphone-control-vx.y.z-linux-x86_64.tar.gz`, `…-linux-aarch64.tar.gz`), and creates the GitHub release from the two changelog sections. The macOS binary (`…-macos-arm64.tar.gz`) is built afterwards and uploaded to the release; if GitHub has no macOS runner available the job is cancelled after about 15 minutes — re-run just that job.
4. First release only: make the ghcr package public (*Package settings → Change visibility*) — new packages start private.
By contributing you agree that your contributions are licensed under the MIT license, except for changes to vendored files, which stay under their original licenses.
diff --git a/Cargo.lock b/Cargo.lock
index ea79243..b8f7240 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1967,7 +1967,7 @@ dependencies = [
[[package]]
name = "ictl-daemon"
-version = "0.1.1"
+version = "0.1.2"
dependencies = [
"anyhow",
"base64 0.23.1",
@@ -1987,7 +1987,7 @@ dependencies = [
[[package]]
name = "ictl-device"
-version = "0.1.1"
+version = "0.1.2"
dependencies = [
"idevice",
"plist",
@@ -2001,7 +2001,7 @@ dependencies = [
[[package]]
name = "ictl-mcp"
-version = "0.1.1"
+version = "0.1.2"
dependencies = [
"anyhow",
"ictl-protocol",
@@ -2012,7 +2012,7 @@ dependencies = [
[[package]]
name = "ictl-protocol"
-version = "0.1.1"
+version = "0.1.2"
dependencies = [
"libc",
"serde",
@@ -2022,7 +2022,7 @@ dependencies = [
[[package]]
name = "ictl-sign"
-version = "0.1.1"
+version = "0.1.2"
dependencies = [
"plist",
"plume_core",
@@ -2035,7 +2035,7 @@ dependencies = [
[[package]]
name = "ictl-unlock"
-version = "0.1.1"
+version = "0.1.2"
dependencies = [
"ictl-wda",
"serde_json",
@@ -2047,7 +2047,7 @@ dependencies = [
[[package]]
name = "ictl-wda"
-version = "0.1.1"
+version = "0.1.2"
dependencies = [
"base64 0.23.1",
"ictl-device",
@@ -2258,7 +2258,7 @@ dependencies = [
[[package]]
name = "iphone-control"
-version = "0.1.1"
+version = "0.1.2"
dependencies = [
"anyhow",
"clap",
diff --git a/Cargo.toml b/Cargo.toml
index f8f13e9..082b98f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -15,7 +15,7 @@ members = [
exclude = ["vendor"]
[workspace.package]
-version = "0.1.1"
+version = "0.1.2"
edition = "2024"
# rmcp 3.8 要求 1.88;Impactor/idevice 用 edition 2024
rust-version = "1.88"
diff --git a/README.md b/README.md
index e34b16a..7fb6697 100644
--- a/README.md
+++ b/README.md
@@ -94,17 +94,20 @@ You can also skip both the clone and the build: in a new directory, write a `com
### macOS
-Docker on a Mac can't pass USB devices through to containers, so on a Mac (Apple Silicon; Xcode not needed) build the binary and run it directly, as your regular user. You need the Xcode Command Line Tools (`xcode-select --install`) and Rust 1.88+ ([rustup](https://rustup.rs)):
+Docker on a Mac can't pass USB devices through to containers, so on a Mac (Apple Silicon; no Xcode needed) run the binary directly, as your regular user. Download it from [Releases](https://github.com/Derrors/iphone-control/releases) (`…-macos-arm64.tar.gz`):
```bash
-git clone https://github.com/Derrors/iphone-control.git
-cd iphone-control
-cargo install --path apps/iphone-control --locked # installs ~/.cargo/bin/iphone-control
+V=v0.1.2 # latest version
+curl -fsSL https://github.com/Derrors/iphone-control/releases/download/$V/iphone-control-$V-macos-arm64.tar.gz | tar xz
+mkdir -p ~/.local/bin && install -m 755 iphone-control-$V-macos-arm64/iphone-control ~/.local/bin/
+export PATH="$HOME/.local/bin:$PATH" # add this line to ~/.zprofile too
iphone-control daemon # keep this terminal open
iphone-control setup # in a second terminal
iphone-control mcp-config # prints the `claude mcp add` command to run
```
+Downloaded with a browser instead of `curl`? Gatekeeper blocks the unnotarized binary; run `xattr -d com.apple.quarantine ~/.local/bin/iphone-control`. To build from source instead: `cargo install --path apps/iphone-control --locked` in a clone (needs the Xcode Command Line Tools and Rust 1.88+).
+
Set the phone's charging limit to 100% (*Settings → Battery → Charging*): with the 80% limit, USB drops about once a minute. Configuration, keeping it running and the known differences are in the [macOS guide](https://derrors.github.io/iphone-control/en/deploy/macos).
## MCP Tools
@@ -164,7 +167,7 @@ The architecture and design documents are in Chinese for now.
- Apple ID logins use a public third-party anisette server by default; set `ICTL_ANISETTE_URL` to use your own
- The container runs as root: it needs the USB device nodes and must restart usbmuxd after replugging
- The HID fallback needs iOS 27 or later; on older iOS everything goes through WebDriverAgent
-- On macOS: build from source (no prebuilt binary yet), run the daemon in a terminal (no launchd service yet), no Docker (no USB passthrough); data lives in `~/.local/share/iphone-control`. Intel Macs are untested
+- On macOS: Apple Silicon only (Intel Macs untested, no prebuilt binary), the binary isn't notarized, run the daemon in a terminal (no launchd service yet), no Docker (no USB passthrough); data lives in `~/.local/share/iphone-control`
> [!WARNING]
> This tool can fully control your phone. An agent may tap payment, delete or send buttons — keep tool-call confirmation on in your MCP client. Not affiliated with Apple; use it only with devices and accounts you own. Read [SECURITY.md](SECURITY.md) before enabling auto-unlock.
diff --git a/README.zh-CN.md b/README.zh-CN.md
index a48d849..5844c23 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -94,17 +94,20 @@ claude mcp add iphone -s user -- docker exec -i iphone-control iphone-control mc
### macOS
-Mac 上的 Docker 不能把 USB 设备交给容器,所以在 Mac(Apple Silicon,不需要 Xcode)上要编译出二进制,以普通用户直接运行。需要 Xcode 命令行工具(`xcode-select --install`)和 Rust 1.88+([rustup](https://rustup.rs)):
+Mac 上的 Docker 不能把 USB 设备交给容器,所以在 Mac(Apple Silicon,不需要 Xcode)上以普通用户直接运行二进制。从 [Releases](https://github.com/Derrors/iphone-control/releases) 下载(`…-macos-arm64.tar.gz`):
```bash
-git clone https://github.com/Derrors/iphone-control.git
-cd iphone-control
-cargo install --path apps/iphone-control --locked # 装到 ~/.cargo/bin/iphone-control
+V=v0.1.2 # 最新版本号
+curl -fsSL https://github.com/Derrors/iphone-control/releases/download/$V/iphone-control-$V-macos-arm64.tar.gz | tar xz
+mkdir -p ~/.local/bin && install -m 755 iphone-control-$V-macos-arm64/iphone-control ~/.local/bin/
+export PATH="$HOME/.local/bin:$PATH" # 这一行也加到 ~/.zprofile
iphone-control daemon # 这个终端保持开着
iphone-control setup # 在另一个终端运行
iphone-control mcp-config # 打印 `claude mcp add` 命令,复制运行
```
+用浏览器而不是 `curl` 下载的,Gatekeeper 会拦下没有公证的二进制,运行 `xattr -d com.apple.quarantine ~/.local/bin/iphone-control` 即可。也可以从源码编译:在克隆的仓库里 `cargo install --path apps/iphone-control --locked`(需要 Xcode 命令行工具和 Rust 1.88+)。
+
把手机的充电上限改成 100%(设置 → 电池 → 充电):开着「80% 上限」时 USB 大约每分钟断开一次。配置、保持运行和已知差异见 [macOS 指南](https://derrors.github.io/iphone-control/deploy/macos)。
## MCP 工具
@@ -162,7 +165,7 @@ iphone-control mcp-config # 打印 `claude mcp add`
- 登录 Apple ID 默认用公共的第三方 anisette 服务;可设 `ICTL_ANISETTE_URL` 换成自建服务
- 容器以 root 运行:要访问 USB 设备节点,拔插后还要能重启 usbmuxd
- HID 后备路线要 iOS 27 及以上;更早的 iOS 全部经 WebDriverAgent 操作
-- macOS 上:只能从源码编译(还没有预编译二进制),守护进程在终端里前台运行(还没有 launchd 配置),不能用 Docker(没有 USB 直通);数据在 `~/.local/share/iphone-control`。Intel Mac 还没测过
+- macOS 上:只支持 Apple Silicon(Intel Mac 没测过,也没有预编译包),二进制没有经过苹果公证,守护进程在终端里前台运行(还没有 launchd 配置),不能用 Docker(没有 USB 直通);数据在 `~/.local/share/iphone-control`
> [!WARNING]
> 这个工具能完全控制你的手机,agent 可能点到付款、删除、发送这类按钮,请在 MCP 客户端里保持工具调用确认。本项目与 Apple 无关;只在你自己的设备和账号上使用。开启自动解锁前请先读 [SECURITY.md](SECURITY.md)。
diff --git a/website/deploy/macos.md b/website/deploy/macos.md
index dca4d73..88a3e2b 100644
--- a/website/deploy/macos.md
+++ b/website/deploy/macos.md
@@ -9,8 +9,7 @@ iphone-control 也能直接跑在 Mac 上:用 macOS 自带的 usbmuxd,不需
## 需要
- Apple Silicon 的 Mac
-- Xcode 命令行工具(提供 C 编译器和 git),**不需要**完整的 Xcode
-- Rust 1.88 以上
+- 用预编译二进制什么都不用装;从源码编译要 Xcode 命令行工具和 Rust 1.88 以上。都**不需要**完整的 Xcode
- 一部 iOS 17 以上的 iPhone,用能**传数据**的线连接
- 一个免费 Apple ID(建议专门注册一个)
@@ -20,7 +19,34 @@ Docker Desktop 在 Mac 上把容器跑在 Linux 虚拟机里,不支持 USB 直
## 安装
-目前 Releases 里没有 macOS 的预编译二进制,要从源码编译(M3 Pro 上约 2 分半):
+### 预编译二进制
+
+从 0.1.2 起,[Releases](https://github.com/Derrors/iphone-control/releases) 里有 macOS(Apple Silicon,macOS 11 以上)的压缩包 `iphone-control-<版本>-macos-arm64.tar.gz`。在终端里下载安装(把 `V` 换成最新版本号):
+
+```bash
+V=v0.1.2
+curl -fsSLO https://github.com/Derrors/iphone-control/releases/download/$V/iphone-control-$V-macos-arm64.tar.gz
+curl -fsSLO https://github.com/Derrors/iphone-control/releases/download/$V/iphone-control-$V-macos-arm64.tar.gz.sha256
+shasum -a 256 -c iphone-control-$V-macos-arm64.tar.gz.sha256 # 应显示 OK
+tar xzf iphone-control-$V-macos-arm64.tar.gz
+mkdir -p ~/.local/bin && install -m 755 iphone-control-$V-macos-arm64/iphone-control ~/.local/bin/
+echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zprofile && source ~/.zprofile # 只需做一次
+iphone-control --version
+```
+
+::: tip 被系统拦下「无法验证开发者」
+二进制没有经过苹果公证(那要付费开发者账号)。像上面这样用 `curl` 下载的不会被拦;用浏览器下载的会带上隔离标记,第一次运行时被 Gatekeeper 拦下。去掉标记即可:
+
+```bash
+xattr -d com.apple.quarantine ~/.local/bin/iphone-control
+```
+
+也可以在「系统设置 → 隐私与安全性」里点「仍要打开」。
+:::
+
+### 从源码编译
+
+需要 Xcode 命令行工具和 Rust 1.88 以上,M3 Pro 上约 2 分半:
```bash
xcode-select --install # 已经装过会提示
@@ -62,7 +88,7 @@ iphone-control mcp-config # 打印注册命令,复制运行即可
```bash
mkdir -p ~/.config/iphone-control
-cp .env.example ~/.config/iphone-control/env # 按需填代理、通知
+cp .env.example ~/.config/iphone-control/env # 按需填代理、通知(预编译包里叫 env.example)
set -a; . ~/.config/iphone-control/env; set +a
iphone-control daemon
```
@@ -102,6 +128,8 @@ sudo launchctl kickstart -k system/com.apple.usbmuxd
## 升级
+预编译二进制:按「安装」一节下载新版本,覆盖 `~/.local/bin/iphone-control`。从源码编译:
+
```bash
cd iphone-control && git pull
cargo install --path apps/iphone-control --locked
@@ -114,7 +142,7 @@ cargo install --path apps/iphone-control --locked
先在守护进程的终端按 Ctrl-C 停掉,然后:
```bash
-cargo uninstall iphone-control
+rm -f ~/.local/bin/iphone-control # 预编译二进制;从源码编译的用 cargo uninstall iphone-control
rm -rf ~/.local/share/iphone-control ~/.config/iphone-control # 会删掉 Apple ID 会话和签好的 WDA
```
@@ -124,7 +152,7 @@ rm -rf ~/.local/share/iphone-control ~/.config/iphone-control # 会删掉 Appl
| | Linux(从源码运行) | macOS |
|---|---|---|
-| 安装 | 预编译二进制或从源码编译 | 只能从源码编译 |
+| 安装 | 预编译二进制或从源码编译 | 同左(只有 Apple Silicon 的包) |
| 常驻 | systemd 用户服务 | 还没有 launchd 配置,在终端里前台运行 |
| usbmuxd | 系统包,插上手机时由 udev 拉起 | macOS 自带,一直在运行 |
| 数据目录 | `~/.local/share/iphone-control` | 同左(不是 Mac 习惯的 `~/Library/Application Support`) |
diff --git a/website/en/deploy/macos.md b/website/en/deploy/macos.md
index fcaa252..83dd5f4 100644
--- a/website/en/deploy/macos.md
+++ b/website/en/deploy/macos.md
@@ -9,8 +9,7 @@ Fully verified on a MacBook Pro (Apple M3 Pro) / macOS 26.6.2 with an iPhone 15
## You need
- An Apple Silicon Mac
-- The Xcode Command Line Tools (C compiler and git). Full Xcode is **not** needed
-- Rust 1.88 or later
+- Nothing else for the prebuilt binary; to build from source, the Xcode Command Line Tools and Rust 1.88+. Full Xcode is **not** needed
- An iPhone on iOS 17+, connected with a cable that carries **data**
- A free Apple ID (a dedicated one is recommended)
@@ -20,7 +19,34 @@ Docker Desktop on a Mac runs containers in a Linux VM without USB passthrough, s
## Install
-There is no prebuilt macOS binary in Releases yet; build from source (about 2½ minutes on an M3 Pro):
+### Prebuilt binary
+
+Since 0.1.2, [Releases](https://github.com/Derrors/iphone-control/releases) has a macOS archive (Apple Silicon, macOS 11+): `iphone-control-<version>-macos-arm64.tar.gz`. Download and install it from a terminal (set `V` to the latest version):
+
+```bash
+V=v0.1.2
+curl -fsSLO https://github.com/Derrors/iphone-control/releases/download/$V/iphone-control-$V-macos-arm64.tar.gz
+curl -fsSLO https://github.com/Derrors/iphone-control/releases/download/$V/iphone-control-$V-macos-arm64.tar.gz.sha256
+shasum -a 256 -c iphone-control-$V-macos-arm64.tar.gz.sha256 # should print OK
+tar xzf iphone-control-$V-macos-arm64.tar.gz
+mkdir -p ~/.local/bin && install -m 755 iphone-control-$V-macos-arm64/iphone-control ~/.local/bin/
+echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zprofile && source ~/.zprofile # once
+iphone-control --version
+```
+
+::: tip "Developer cannot be verified"
+The binary isn't notarized by Apple (that needs a paid developer account). Downloaded with `curl` as above it runs as is; downloaded with a browser it carries a quarantine flag and Gatekeeper blocks the first run. Remove the flag:
+
+```bash
+xattr -d com.apple.quarantine ~/.local/bin/iphone-control
+```
+
+or click *Open Anyway* under *System Settings → Privacy & Security*.
+:::
+
+### Build from source
+
+You need the Xcode Command Line Tools and Rust 1.88+; about 2½ minutes on an M3 Pro:
```bash
xcode-select --install # says so if already installed
@@ -62,7 +88,7 @@ Settings go in `~/.config/iphone-control/env` (same format as `.env.example` in
```bash
mkdir -p ~/.config/iphone-control
-cp .env.example ~/.config/iphone-control/env # proxy, notifications, …
+cp .env.example ~/.config/iphone-control/env # proxy, notifications, … (env.example in the prebuilt archive)
set -a; . ~/.config/iphone-control/env; set +a
iphone-control daemon
```
@@ -102,6 +128,8 @@ sudo launchctl kickstart -k system/com.apple.usbmuxd
## Upgrade
+Prebuilt binary: download the new version as under *Install* and replace `~/.local/bin/iphone-control`. From source:
+
```bash
cd iphone-control && git pull
cargo install --path apps/iphone-control --locked
@@ -114,7 +142,7 @@ Then restart the daemon.
Stop the daemon with Ctrl-C in its terminal, then:
```bash
-cargo uninstall iphone-control
+rm -f ~/.local/bin/iphone-control # prebuilt binary; for a source build: cargo uninstall iphone-control
rm -rf ~/.local/share/iphone-control ~/.config/iphone-control # deletes the Apple ID session and signed WDA
```
@@ -124,7 +152,7 @@ On the phone, delete the WebDriverAgent app; its profile under *VPN & Device Man
| | Linux (source install) | macOS |
|---|---|---|
-| Install | Prebuilt binary or build from source | Build from source only |
+| Install | Prebuilt binary or build from source | Same (Apple Silicon archive only) |
| Keep running | systemd user service | No launchd configuration yet; run in a terminal |
| usbmuxd | System package, started by udev on plug-in | Built into macOS, always running |
| Data directory | `~/.local/share/iphone-control` | Same (not the usual `~/Library/Application Support`) |
diff --git a/website/en/guide/what-is-iphone-control.md b/website/en/guide/what-is-iphone-control.md
index e86856f..aaeb429 100644
--- a/website/en/guide/what-is-iphone-control.md
+++ b/website/en/guide/what-is-iphone-control.md
@@ -24,7 +24,7 @@ It works as a set of [MCP](https://modelcontextprotocol.io) (Model Context Proto
| | |
|---|---|
-| Host | Linux, x86_64 or arm64: Docker (Compose v2), or Rust 1.88+ to build from source<br>macOS, Apple Silicon: Rust 1.88+ to build from source, see [macOS](../deploy/macos) |
+| Host | Linux, x86_64 or arm64: Docker (Compose v2), or Rust 1.88+ to build from source<br>macOS, Apple Silicon: prebuilt binary, or Rust 1.88+ to build from source, see [macOS](../deploy/macos) |
| Phone | iOS 17 or later; the HID fallback needs iOS 27 or later |
| Verified on | iPhone 15 Pro Max, iOS 27.0.1 (Linux, macOS)<br>iPhone 12 mini, iOS 26.4.1 (Linux) |
| Account | A free Apple ID; a dedicated one is recommended |
diff --git a/website/en/index.md b/website/en/index.md
index 162acb6..06b3668 100644
--- a/website/en/index.md
+++ b/website/en/index.md
@@ -40,7 +40,7 @@ features:
details: WDA is reached through usbmuxd; nothing listens on the network. Auto-unlock is off by default
- icon: 📦
title: One binary
- details: Written in Rust. One Docker command to deploy on Linux, or run it from source or a prebuilt binary; build from source on a Mac
+ details: Written in Rust. One Docker command to deploy on Linux, or run it from source or a prebuilt binary; on a Mac, run the prebuilt binary
- icon: 🧭
title: Fewer round trips
details: Actions can return the resulting screen after waiting for it to settle, and flag loading pages and blocking alerts
diff --git a/website/guide/what-is-iphone-control.md b/website/guide/what-is-iphone-control.md
index c9432f9..24c7f2d 100644
--- a/website/guide/what-is-iphone-control.md
+++ b/website/guide/what-is-iphone-control.md
@@ -24,7 +24,7 @@ iphone-control 让 AI agent(例如 Claude)操作一台用数据线接在 Lin
| | |
|---|---|
-| 主机 | Linux,x86_64 或 arm64:Docker(Compose v2),或 Rust 1.88+ 从源码编译<br>macOS,Apple Silicon:Rust 1.88+ 从源码编译,见 [macOS](../deploy/macos) |
+| 主机 | Linux,x86_64 或 arm64:Docker(Compose v2),或 Rust 1.88+ 从源码编译<br>macOS,Apple Silicon:预编译二进制,或 Rust 1.88+ 从源码编译,见 [macOS](../deploy/macos) |
| 手机 | iOS 17 及以上;HID 后备路线要 iOS 27 及以上 |
| 已在真机验证 | iPhone 15 Pro Max,iOS 27.0.1(Linux、macOS)<br>iPhone 12 mini,iOS 26.4.1(Linux) |
| 账号 | 免费 Apple ID 即可,建议专门注册一个 |
diff --git a/website/index.md b/website/index.md
index 1bf7587..6ddf5be 100644
--- a/website/index.md
+++ b/website/index.md
@@ -40,7 +40,7 @@ features:
details: WDA 经 usbmuxd 直连手机,本机不监听任何网络端口;自动解锁默认关闭
- icon: 📦
title: 一个二进制
- details: Rust 编写,Linux 上 Docker 一条命令部署,也可以从源码或预编译二进制运行;Mac 上从源码编译
+ details: Rust 编写,Linux 上 Docker 一条命令部署,也可以从源码或预编译二进制运行;Mac 上直接运行预编译二进制
- icon: 🧭
title: 省往返
details: 操作可以顺带返回操作后的界面,自动等界面稳定、识别加载中和挡路的弹窗