PangYiMing/dsh-mobile-control ↗★ 1
dsh-mobile-control
DSH plugin for controlling mobile devices (ADB / iOS simulator / WDA)
AI Analysis
核心用途是允许 Agent 控制移动端设备或模拟器。适合需要自动化测试移动端应用、截屏或模拟用户操作的任务。必要条件是控制 iOS 模拟器时需要完整版 Xcode 及 WDA 配置。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:PangYiMing/dsh-mobile-controlREADME
Read the full README ↗快速开始 Quick start
前置:完整版 Xcode(XCUITest 靠 testmanagerd 拉起,纯 simctl launch 起不来 HTTP 服务)。
bash scripts/wda-up.sh [UDID] # 不传 UDID 用当前 Booted 的模拟器
curl -s localhost:8100/status | head -c 200 # 返回 build/os/device 即 OK
幂等设计:已在跑 → 秒返回;有缓存 → 免编译 ~30s;没缓存 → 首次 clone+编译一次(之后一直免编译)。模拟器包未签名、arch=arm64+x86_64,可跨 Mac 复用:把 Build/Products + .xctestrun 拷给别人,直接 test-without-building,谁都不用再编。真机不能这么白嫖(真机 WDA 必须用含设备 UDID 的描述文件重新签名)。
安装后直接在 agent 会话里用自然语言触发:
安装 Install
# 或从 GitHub 安装(源码安装需要 prepare 构建)
dsh plugin --profile demo add github:PangYiMing/dsh-mobile-control