Repository navigation
v0.3.0
English
A major architecture, security, stability and performance release: hyper-based control page, direct iOS 27 accessibility tree, instant USB hotplug discovery, abnormal-restart alerting and dozens of reliability fixes.
New
- Abnormal daemon restarts (crash,
SIGKILL, power loss or watchdog restart) are detected on the next start, logged and reported through a newdaemonnotification (iphone-control notify-test daemon) with crash-loop throttling (#219).
Improvements
- USB plug and unplug events wake the daemon right away via usbmuxd's
Listenstream instead of waiting up to 10 seconds for the next poll, while keeping the periodic poll as a fallback (#221). - On macOS, control requests sent to the viewer's local HTTP API now also identify the calling process (via
libproc), so an agent on the same machine can no longer pause, resume or approve its own task through the HTTP API either (#215). - On iOS 27 the screen is read without the detour through WebDriverAgent-style XML: the accessibility tree becomes the element tree directly, the same one WDA's source gives. When auto-unlock fails on such a phone, its message no longer says "WDA unavailable" (#211).
- Slow work that doesn't need the phone no longer holds up taps and reads:
doctorchecks this machine (usbmuxd, the Apple ID, ffmpeg) before it takes the phone, crash reports and uninstalling an app don't take it at all, and the details of a second connected device are read in the background (#207). - The control page's server now runs on hyper (already in the program through its HTTP client and MCP), in place of the hand-written HTTP/1.1. The login, the checks on each request, HTTPS for the network and the picture and task streams work as before; streams now go out chunked instead of ending at the close (#209).
- Faster in a few places: a scroll search (
iphone_scroll_collect,iphone_tap_elementwithscroll) no longer reads the screen again after each swipe (about 0.3 s a swipe); pasting into a password or web page field returns once the paste prompt was answered instead of after 5 s; the control page is sent gzipped (about 290 KB down to 90 KB); one phone's picture opening slowly no longer holds up another phone's pages; the developer disk image is written to disk as it downloads (#206). - Several control pages on one phone running WebDriverAgent share one picture stream from the phone instead of opening one each, which could push WebDriverAgent over the CPU limit at which iOS stops it (#188).
- On iOS 17–26 the control page's picture comes through the daemon; apart from
wda-bridge, only the daemon talks to the phone now (#192). - The phone's own video on the control page pauses while the phone unlocks itself or the bitrate changes, instead of dropping and reconnecting (#190).
- While nobody watches the control page, the phone's screen video costs less CPU (#187).
- The control page polls less, and not at all from a background tab (#193).
Fixes
- Long-running AI tasks can no longer grow their event logs without bound (capped at 16,384 events / 16 MiB while keeping start and completion records), and replaying task history no longer holds up other daemon operations (#218).
- iOS 27+: typing into a web page's field (Safari) works: the paste prompt is found and answered without reading the page, which can't be read until it is answered. Before, typing there failed, or the text went in but was reported missing (#213).
- iOS 27+: "Allow Paste" is tapped whatever the phone's language: when its text isn't known, the first of the prompt's two buttons (#213).
iphone_tap_elementwithscrollno longer taps a list that is still creeping to a stop: such a tap only stopped the list, yet was reported as done. It now waits until the element it found stays in place (at most 2 s) before tapping it (#213).- iOS 27+ on a Mac without ffmpeg: the control page's H.264 route for a browser that can't decode the phone's HEVC is refused instead of answering an empty stream the page kept retrying, and
doctorsays that this picture needs ffmpeg (brew install ffmpeg) instead of "no ffmpeg needed" (#213). - The daemon's log no longer mixes languages when a client uses another language than the daemon: what timed out, and the reasons WDA was unavailable or didn't start, are kept in both languages and shown in the reader's (#208).
iphone-control updatesays what actually has to stop before an upgrade (AI tasks, a viewer orwda-bridgestarted by hand; the viewer service and idle MCP clients are handled), andnotify-test --helplistscert. The README, the site and the architecture notes match the code again: the tool table includesiphone_scroll_collect, notifications do name the device, restarting the daemon doesn't drop MCP clients, and the picture paths are described as they now work (#205).- iOS 27+: a phone ready for native control is checked every 5 minutes while nobody uses it. When the developer disk image is gone or the tunnel no longer answers, it is prepared again instead of staying "ready" until the next action fails; after mounting the image again, the accessibility service left from before is restarted, as it would no longer read the screen (#204).
- iOS 27+: what a process of the phone is (the app in front, a web page's process) is looked up again after 10 minutes, and SpringBoard's process after a minute or when reading it fails. A daemon running for weeks could otherwise go by a process number another app had taken, or miss alerts after SpringBoard restarted (#204).
- The daemon no longer keeps the events of its last 50 tasks in memory: they are read from the task's log file when a page or
task eventsreplays them (#204). - The control page's H.264 picture lost before its first frame (a restart, a dropped connection) is tried again later instead of being given up for good; only a refused one (no encoder, a codec the browser can't decode) is. A retry left over from before switching devices no longer reconnects the picture out of turn (#204).
- AI tasks: while a step waits for your confirmation you can take over first (to look or change something); the question stays, and can be answered while you're in control or after handing back (#201).
- The control page no longer stays on "running" when a task's event stream is closed for good: it follows the task again if it is still there, or marks it stopped. Reconnecting or reloading the page no longer redraws old gesture marks (#201).
- A page or
task eventsthat fell behind a busy task no longer misses its end and stays open; a task's end stops every step still under way (a step asking to leave the task's scope, and its question, are two), so none keeps spinning; nothing is recorded after the end (#201). task runwaits for what the command started to stop (killing what ignores SIGTERM) before it exits; stopping a group no longer sends a late SIGKILL to a group number that may have been reused (#201).- The picture of a phone driven by WebDriverAgent ends when you switch to another device, instead of showing the old one (#201).
- The H.264 copy of the phone's own video counts a crashed ffmpeg as a failure and moves on to the next encoder, instead of restarting it for ever (#201).
task run --urlstops within 10 seconds of Ctrl-C even if the viewer doesn't answer, and gives up an event stream that goes silent or sends an endless event (#201).- Only one daemon runs per socket, even when two start at once, and the socket is private from the moment it is created; a lock that can't be taken at all is reported as such instead of as another daemon (#201).
- The control page and the login page only run their own scripts (a Content-Security-Policy with their hashes) and never send a referrer to other sites (the login form still works behind a reverse proxy that strips
Origin); a client that stops reading no longer holds a connection for good (#202, #220). - With HTTPS on, the viewer takes actions only from a page served the way it serves it (HTTPS, or plain HTTP from this machine) (#202).
- A viewer stopped while it made its certificate makes a new one on the next start, instead of failing to load a key that doesn't match (#202).
- A token removed with
viewer token removeis refused at once also within the same second, andviewer tokencommands run at the same time no longer lose each other's changes (#202). - A setting written twice in
~/.config/iphone-control/envtakes its last value, as the services read it (#202). - Services install from a program path with spaces, and refuse one with characters systemd or the shell would read as their own; an update that paused the viewer's service starts it again without turning on its start at login; setting up the automatic update job and failing leaves none of its files behind, even when the service manager can't be reached (#202).
- An AI task from the control page works when
IPHONE_CONTROL_URLis set in the settings file (#202). - A read-only login no longer sends touches from the picture (each answered with an error) and shows no pointer on it (#202).
- iOS 27+: an ordinary text field showing a time or a fraction ("6:00", "2/4") is no longer taken for the lock screen's passcode field, which made the phone read as locked (#203).
- iOS 27+: an element the phone lists under another flag than its own is no longer left out of the screen with everything under it (#203).
- Malformed answers from the phone (endless or oversized message fragments from the accessibility service, a Web Inspector message split past its limit, a WebDriverAgent answer with an endless head or odd chunks) are refused instead of read for ever or crashing; a WebDriverAgent answer with trailers no longer waits for the timeout (#203).
iphone_web_eval: a page that went away is reported at once instead of after the timeout, and a connection left out of step is opened again for the next call (#203).- macOS: the built-in video encoder no longer piles up frames for a page that is slow to take them (#203).
- When pressing Home finds a system alert in the way, the daemon's answer now also marks it in its structured result (
alert_reported), as launching an app or opening a link does; programs reading the result rather than its text missed it (#200). - A long press falls back to HID like a tap when WebDriverAgent can't be reached (#200).
- Requests that can't run (a tap count of 0, an empty tap sequence, an unknown button, a point that isn't a number) are refused at once, before waiting for the phone and without dropping the cached screen (#200).
- The control page getting ready for a touch no longer counts as acting: it isn't refused while an AI task runs and doesn't make the agent look again after you take over (#200).
- Requests for a list scan sent by a newer client with extra fields are no longer refused by an older daemon (#200).
- Auto-unlock refuses a saved passcode shorter than 4 digits, as
passcode setdoes;state.jsonis no longer replaced by an empty file if it can't be written out; notification keys are never shown in debug output (#200). - iPads with Touch ID in a language other than Chinese or English: the "Touch ID" prompt after swiping up is known as the lock screen, and auto-unlock taps "Use Passcode" on it; the iPad was taken for unlocked and never checked again (#198).
- A malformed accessibility answer from the phone (iOS 27+) can no longer keep the daemon busy for ever; a malformed touch (a coordinate or duration that isn't a number) is refused instead of crashing or tapping the top-left corner (#198).
- The phone's log is read from now on only: the daemon took old lines for new, such as a past "Enable UI Automation" prompt, and
iphone_app_logsshowed them as just logged (#198). - Re-signing locks down the Apple ID session and a new signing key as soon as they are written, leaves no scratch directory behind when it times out, and never leaves a half-written package (#198).
- macOS: a memory-safety bug in the built-in video encoder's JPEG decoding is fixed (#198).
- iOS 27+: an action that comes while the control page checks the phone in the background no longer leaves the accessibility connection half-read, and those checks no longer restart the phone's accessibility daemon; only actions decide that (#197).
- A task paused for a long time no longer keeps the control page's background checks from running (#197).
- Switching back to a phone made ready in the background takes effect at once even when the daemon was busy at that moment; it could wait 10 seconds. The daemon serves at most 256 clients at once; more wait their turn (#197).
- AI tasks limited to some apps: an action is checked again once it has the phone, in case another app came to the front meanwhile, and
iphone_web_evalis checked against the app that shows the page (#197). iphone_tap_element's scroll search andiphone_wait_forstop as soon as the task is paused or taken over or the caller goes away, instead of holding the phone until they time out; the daemon also limits a scroll search to 15 swipes (#197).- The control page's server refuses malformed requests, so a crafted link can no longer send a browser from it to another site, and it no longer waits for request bodies from someone who isn't logged in (#196).
- AI tasks from the control page: a task whose text starts with
--is no longer taken as an option by the agent, and the agent no longer gets the task's token on its command line or notification keys in its environment (#196). - A malformed video report from a page no longer freezes its picture (#196).
- iOS 17–18: the developer disk image is mounted the way these versions need, so WebDriverAgent starts on them again (#186).
- Times in
status,doctorand the event log are shown in local time with the time zone; they were UTC without saying so (#184). - Errors from
iphone-control update,serviceand the update panel on the control page follow the chosen language; they were always in English (#184). - An idle
iphone-control mcp(kept running by Claude Desktop, Cursor, Claude Code…) no longer keeps updates from installing; its next call reaches the new daemon (#190). - Phones driven natively (iOS 27+) no longer trigger WebDriverAgent re-signing or the daily Apple ID session check (and its "session expired" warning) when another device once used WebDriverAgent (#187).
- After re-signing, the new WebDriverAgent starts right away (#187).
- A dragged finger held down (
iphone_swipewithhold) is lifted if the drag fails or times out halfway (#187). - A broken stream from the phone can no longer make the program use unbounded memory (#187).
- Screenshots of a phone driven natively say "via CoreDevice" instead of "via HID" (#187).
- A daemon that ended with the screen media stream open (stuck and restarted, crashed or killed) no longer leaves the phone showing "viewed remotely" and never auto-locking (#193).
- MCP over HTTP (
/mcp) accepts request bodies sent chunked, as some clients and reverse proxies send them, and ends streamed answers so a proxy can tell their end from a dropped connection (#189). - The control page's server takes more connections and answers 503 when they are all taken instead of dropping new ones silently (#189).
- At most 4 control pages at once get the phone's own video transcoded to H.264 (browsers without HEVC); more retry until one closes (#193).
- Stopping the viewer (
systemctl stop, an update, Ctrl-C) also stops the agents of AI tasks started from the page; they kept running on their own (#189).
中文
全面架构、安全、稳定性与性能升级:控制台切换 hyper、iOS 27 无障碍树直读、usbmuxd 实时 USB 热插拔、异常重启告警以及数十项可靠性与性能修复。
新功能
- 守护进程重启时会检测上一次是否异常退出(崩溃、
SIGKILL、断电或看门狗重启),写入日志并通过新增的daemon通知事件(iphone-control notify-test daemon)告警,崩溃循环下自动合并抑制(#219)。
改进
- 经 usbmuxd 的
Listen事件流实时感知 USB 插拔,不再最多等 10 秒才开始准备或更新离线状态,同时保留每 10 秒一次的定期巡检兜底(#221)。 - macOS 上向本机控制台 HTTP 接口发出的控制请求现在也能识别调用方进程(经
libproc),本机上的 agent 不能再借控制台 HTTP 接口暂停、继续或批准自己的任务(#215)。 - iOS 27 上读界面不再绕一道 WebDriverAgent 样式的 XML:无障碍树直接变成元素树,和 WDA 读到的是同一种。这类手机上自动解锁出错时,提示里不再说「WDA 不可用」(#211)。
- 不需要手机的慢操作不再挡住点击和读界面:
doctor先查本机(usbmuxd、Apple ID、ffmpeg)再占用手机,崩溃报告和卸载 App 完全不占用,接着的第二台设备的信息改在后台读(#207)。 - 控制台的服务端改用 hyper(程序里的 HTTP 客户端和 MCP 本来就带着它),换掉手写的 HTTP/1.1。登录、每个请求的检查、局域网走 HTTPS、画面和任务的流都和以前一样;流改成分块发送,不再靠关连接表示结束(#209)。
- 几处更快了:边滑边找(
iphone_scroll_collect、带scroll的iphone_tap_element)每滑一次不再重新读界面(每次约省 0.3 秒);往密码框或网页输入框粘贴,点完「允许粘贴」就返回,不再等满 5 秒;控制台页面压缩后再发(约 290 KB 降到 90 KB);一台手机的画面打开得慢,不再挡住别的手机的页面;开发者镜像边下载边写盘(#206)。 - 用 WebDriverAgent 的手机开着多个控制台页面时,共用手机上的一路画面,不再每个页面各开一路(多开时可能让 WebDriverAgent 超出 CPU 上限被 iOS 结束)(#188)。
- iOS 17–26 上控制台的画面改经守护进程取;除了
wda-bridge,现在只有守护进程和手机打交道(#192)。 - 手机自动解锁或码率切换时,控制台里的手机原生画面只是暂停,不再断开重连(#190)。
- 控制台没人观看时,手机的屏幕视频占用的 CPU 更少(#187)。
- 控制台页面的轮询更少,在后台标签页时不再轮询(#193)。
修复
- 长时间运行的 AI 任务不再无限撑大单任务事件日志(上限 16,384 条 / 16 MiB,始终保留开始和结束记录),订阅或重追历史事件也不再阻塞守护进程的其他操作(#218)。
- iOS 27 起:往网页输入框(Safari)输入文字可以用了:「允许粘贴」的提示不用读网页就能找到并点掉,网页在提示回答之前读不出来。以前在这里输入会失败,或者字进去了却报没输进去(#213)。
- iOS 27 起:系统是任何语言都会点「允许粘贴」:按钮文字认不出时,点提示框两个按钮里的前一个(#213)。
- 带
scroll的iphone_tap_element不再在列表还在慢慢停下时就点:那样点下去只让列表停住,却照样报「已点击」。现在等找到的元素停在原处(最多 2 秒)再点(#213)。 - iOS 27 起、Mac 上没装 ffmpeg 时:浏览器解不了手机 HEVC 时用的 H.264 那一路,控制台直接回绝,不再回一个空的流让页面反复重试;
doctor也不再说「不需要 ffmpeg」,而是说明这种画面要装 ffmpeg(brew install ffmpeg)(#213)。 - 客户端和守护进程用的语言不同时,守护进程的日志不再中英混杂:什么超时了、WDA 为什么不可用或起不来,都同时存着两种语言,显示时按看的人的语言(#208)。
iphone-control update说清楚升级前到底要停掉什么(AI 任务、手动开着的 viewer 和wda-bridge;后台的控制台服务和空闲的 MCP 客户端会自动处理),notify-test --help列出cert。README、网站和架构说明重新和代码一致:工具表补上iphone_scroll_collect,通知标题是带设备名的,重启守护进程不会断开 MCP 客户端,画面的几条路径按现在的做法描述(#205)。- iOS 27 起:原生控制就绪的手机,没人用的时候每 5 分钟检查一次。开发者镜像不在了或隧道不应答时会重新准备,不再一直显示「就绪」,等下一个操作失败才发现;重新挂上镜像后,会重启之前留下的无障碍服务,否则它读不出界面(#204)。
- iOS 27 起:手机上某个进程是什么(前台 App、网页进程),10 分钟后会重新查;SpringBoard 的进程过 1 分钟、或读不出来时也会重新找。否则守护进程连续运行几周后,可能按一个已被别的 App 占用的进程号判断,或在 SpringBoard 重启后漏掉弹窗(#204)。
- 守护进程不再把最近 50 个任务的事件都放在内存里:页面或
task events回放时,从任务的日志文件读(#204)。 - 控制台的 H.264 画面在第一帧之前断开(服务重启、连接断了)时,会过一阵再试,不再永久放弃;只有明确走不通的(没有编码器、浏览器解不了这种编码)才不再试。切换设备前留下的重试,也不会再过后把画面重连一次(#204)。
- AI 任务:某一步在等你确认时,可以先接管(看看或改一下);问题会一直留着,接管时或交还后都能回答(#201)。
- 任务的事件流被彻底关掉时,控制台不再一直停在「执行中」:任务还在就重新跟上,不在了就标成已停止。重连或刷新页面时也不会再把以前的手势标记重画一遍(#201)。
- 跟着一个忙碌任务的页面或
task events跟不上时,不再错过任务结束而一直挂着;任务结束时把还在进行的步骤都停下(要越出任务范围的一步和它的提问是两步),不会再有一直转圈的步骤;结束后也不会再记任何事件(#201)。 task run退出前会等命令启动的进程都停下(不理 SIGTERM 的会被强制结束);停进程组时不再在几秒后对可能已被复用的组号补发 SIGKILL(#201)。- 用 WebDriverAgent 控制的手机,切换到别的设备后,原来的画面流会结束,不再一直显示旧设备(#201)。
- 手机原生视频转成 H.264 时,ffmpeg 崩溃算作失败,换下一个编码器,不再无休止地重启(#201)。
task run --url在控制台不应答时,按 Ctrl-C 后 10 秒内也能停下;事件流长时间没动静或发来没有结尾的事件时会放弃(#201)。- 一个 socket 只会有一个守护进程在跑,两个同时启动也一样;socket 从创建那一刻起就只有自己能访问;根本拿不到锁时如实报错,不再说成已有守护进程(#201)。
- 控制台和登录页只运行它们自己的脚本(带脚本哈希的 Content-Security-Policy),也不会向外部站点发送 Referer(反向代理剥离
Origin时登录表单同样可用);客户端不读数据时不会一直占着连接(#202、#220)。 - 开着 HTTPS 时,控制台只接受以它实际提供的方式打开的页面发来的操作(HTTPS,或本机的明文 HTTP)(#202)。
- 控制台在生成证书的中途被停掉,下次启动会重新生成,不再因为私钥和证书对不上而起不来(#202)。
- 用
viewer token remove删掉的令牌,即使在同一秒内也会立刻失效;同时运行的几个viewer token命令不会再互相覆盖改动(#202)。 ~/.config/iphone-control/env里同一个设置写了两次时,以最后一次为准,和后台服务的读法一致(#202)。- 程序路径里有空格也能装服务;带有 systemd 或 shell 会特殊处理的字符时拒绝安装;升级时暂停过的控制台服务恢复时,不再把它的开机自启打开;配置自动更新任务失败时,连不上服务管理器也不会留下它的文件(#202)。
- 设置文件里写了
IPHONE_CONTROL_URL时,控制台上的 AI 任务也能正常工作(#202)。 - 只读登录时,在画面上按下不再把触摸发给手机(之前每次都会弹一个错误),也不显示指针(#202)。
- iOS 27 起:显示时间或分数(如「6:00」「2/4」)的普通输入框,不再被当成锁屏的密码栏(之前会因此把手机判成锁着)(#203)。
- iOS 27 起:手机列出的某个元素标记和它自己的不一致时,不再把它连同下面的所有内容一起漏掉(#203)。
- 手机发来格式异常的应答时直接拒绝,不再一直读下去或崩溃。包括:无障碍服务的消息分片没完没了或过大、Web Inspector 的拆分消息超过上限、WebDriverAgent 的应答头没有结尾或分块异常。WebDriverAgent 的应答带 trailer 时也不再等到超时(#203)。
iphone_web_eval:页面已经不在时立刻报错,不用等到超时;连接错位后,下一次调用会重新打开连接(#203)。- macOS:页面取画面慢时,内置视频编码器不再越积越多(#203)。
- 按 Home 时发现有系统弹窗挡着,守护进程的应答现在也会在结构化结果里标出(
alert_reported),和启动 App、打开链接一样;之前只读结果字段、不看文字的程序会漏掉(#200)。 - 长按和点击一样,连不上 WebDriverAgent 时改用 HID(#200)。
- 执行不了的请求(点击次数为 0、空的点击序列、不认识的按键、坐标不是有效数字)立刻拒绝,不再先排队等手机,也不会清掉缓存的界面(#200)。
- 控制台准备触摸不再算作操作:AI 任务进行中不会被拒,你接管时也不会让 agent 之后重新看一遍(#200)。
- 新版客户端发来带额外字段的列表滚动收集请求,旧版守护进程不再拒绝(#200)。
- 自动解锁不再接受不足 4 位的已存密码,和
passcode set一致;state.json写不出来时不会被换成空文件;通知密钥不会出现在调试输出里(#200)。 - 界面语言不是中文或英文的 Touch ID iPad:上滑后的「触控 ID」提示也认作锁屏,自动解锁会点上面的「使用密码」;之前会把锁着的 iPad 当成已解锁,之后再也不查(#198)。
- 手机(iOS 27 起)发来格式异常的无障碍应答,不会再让守护进程一直忙下去;坐标或时长不是有效数字的触摸会被拒绝,不再崩溃或点到左上角(#198)。
- 手机日志只读从现在起产生的:之前守护进程会把旧日志当成新的(比如以前出现过的「Enable UI Automation」密码框),
iphone_app_logs也会把它们当成刚记下的(#198)。 - 重签时,Apple ID 会话和新的签名私钥一写出就收紧权限;超时也不留下临时目录;不会留下写了一半的安装包(#198)。
- macOS:内置视频编码器解 JPEG 时的一个内存安全问题已修复(#198)。
- iOS 27 起:控制台在后台检查手机时来了操作,检查中途让路后无障碍连接不再停在半条消息上;这类检查也不再重启手机的无障碍服务,要不要重启只由操作决定(#197)。
- 任务暂停很久时,控制台的后台检查不再一直跑不了(#197)。
- 切回一台在后台准备好的手机时,即使守护进程当时正忙也马上生效,之前可能要等 10 秒;守护进程同时最多服务 256 个客户端,更多的排队等候(#197)。
- 限定了 App 范围的 AI 任务:操作拿到手机后再查一次前台 App,以防期间换了别的 App;
iphone_web_eval按显示页面的 App 检查(#197)。 iphone_tap_element的边滑边找和iphone_wait_for在任务暂停、被接管或调用方离开时立刻停下,不再占着手机等到超时;守护进程也把边滑边找限制在 15 次以内(#197)。- 控制台服务拒绝格式不对的请求,精心构造的链接不能再把浏览器从控制台跳到别的网站;也不再为没登录的人等请求体(#196)。
- 控制台上的 AI 任务:以
--开头的任务描述不再被 agent 当成选项;agent 的命令行里不再有任务口令,环境里也没有通知密钥(#196)。 - 页面发来格式不对的视频回执时,画面不再卡住(#196)。
- iOS 17–18:开发者镜像按这些版本需要的方式挂载,WebDriverAgent 又能在上面启动了(#186)。
status、doctor和事件日志里的时间改为本地时间并标明时区,之前显示的是 UTC 却没有说明(#184)。iphone-control update、service和控制台更新面板里的报错跟随界面语言,之前总是英文(#184)。- 空闲的
iphone-control mcp(Claude Desktop、Cursor、Claude Code 等一直开着)不再挡住更新安装,升级后下一次调用自动连上新的守护进程(#190)。 - 原生控制的手机(iOS 27 起)不再因为别的设备用过 WebDriverAgent 而触发 WebDriverAgent 重签和每天一次的 Apple ID 会话检查(以及「会话失效」提醒)(#187)。
- 重签完成后马上启动新的 WebDriverAgent(#187)。
- 按住再拖(
iphone_swipe带hold)中途失败或超时时会抬起手指,不再留着按下的状态(#187)。 - 手机那边的数据流出错时,程序不会再无限占用内存(#187)。
- 原生控制时截图说明写「经 CoreDevice」,不再写「经 HID」(#187)。
- 守护进程开着屏幕媒体流就退出(卡死被重启、崩溃或被结束)后,手机不再一直显示「正在被查看」、一直不自动锁屏(#193)。
- HTTP 上的 MCP(
/mcp)接受分块(chunked)发送的请求体(有的客户端和反向代理这样发),流式的回答也明确结束,代理能分清正常结束和连接中断(#189)。 - 控制台服务能接更多连接,满了时回 503,不再悄悄断开新连接(#189)。
- 浏览器解不了 HEVC、要把手机原生视频转成 H.264 的控制台页面同时最多 4 个,再多的等有页面关掉后重试(#193)。
- 停止控制台(
systemctl stop、升级、Ctrl-C)时一并结束从页面启动的 AI 任务的 agent,之前它们会自己继续运行(#189)。
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.0/install.sh | sh - Homebrew:
brew install Derrors/tap/iphone-control - Debian / Ubuntu:
sudo apt install ./iphone-control_0.3.0_amd64.deb(or / 或_arm64.deb)
Already installed? Run iphone-control update. / 已安装的运行 iphone-control update 升级。