axe-ios-simulator by 0xbigboss/claude-code
npx skills add https://github.com/0xbigboss/claude-code --skill axe-ios-simulatorAXe 是一款通过 Apple 无障碍 API 和 HID 实现 iOS 模拟器自动化的单二进制 CLI 工具。
brew install cameroncooke/axe/axe
# 获取模拟器 UDID
axe list-simulators
UDID="<simulator-udid>"
# 基本交互操作
axe tap -x 100 -y 200 --udid $UDID
axe tap --label "Safari" --udid $UDID
axe type 'Hello World!' --udid $UDID
axe gesture scroll-down --udid $UDID
axe button home --udid $UDID
axe screenshot --udid $UDID
# 按坐标点击
axe tap -x 100 -y 200 --udid $UDID
# 通过无障碍标识符或标签点击
axe tap --id "myButton" --udid $UDID
axe tap --label "Submit" --udid $UDID
# 带时间控制
axe tap -x 100 -y 200 --pre-delay 1.0 --post-delay 0.5 --udid $UDID
# 滑动
axe swipe --start-x 100 --start-y 300 --end-x 300 --end-y 100 --udid $UDID
axe swipe --start-x 50 --start-y 500 --end-x 350 --end-y 500 --duration 2.0 --delta 25 --udid $UDID
# 底层触摸控制
axe touch -x 150 -y 250 --down --udid $UDID
axe touch -x 150 -y 250 --up --udid $UDID
axe touch -x 150 -y 250 --down --up --delay 1.0 --udid $UDID
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 预设手势 | 使用场景 |
|---|---|
scroll-up | 内容导航 |
scroll-down | 内容导航 |
scroll-left | 水平滚动 |
scroll-right | 水平滚动 |
swipe-from-left-edge | 返回导航 |
swipe-from-right-edge | 前进导航 |
swipe-from-top-edge | 关闭/取消 |
swipe-from-bottom-edge | 打开/显示 |
axe gesture scroll-down --udid $UDID
axe gesture swipe-from-left-edge --udid $UDID
axe gesture scroll-up --screen-width 430 --screen-height 932 --udid $UDID
axe gesture scroll-down --pre-delay 1.0 --post-delay 0.5 --udid $UDID
# 直接输入文本(特殊字符使用单引号)
axe type 'Hello World!' --udid $UDID
# 从标准输入读取(最适合自动化)
echo "Complex text" | axe type --stdin --udid $UDID
# 从文件读取
axe type --file input.txt --udid $UDID
# 按 HID 键码单独按键
axe key 40 --udid $UDID # 回车键
axe key 42 --duration 1.0 --udid $UDID # 长按退格键
# 按键序列
axe key-sequence --keycodes 11,8,15,15,18 --udid $UDID # "hello"
axe button home --udid $UDID
axe button lock --duration 2.0 --udid $UDID
axe button side-button --udid $UDID
axe button siri --udid $UDID
axe button apple-pay --udid $UDID
# 截图(自动生成文件名)
axe screenshot --udid $UDID
# 截图到指定路径
axe screenshot --output ~/Desktop/screenshot.png --udid $UDID
# 录制视频到 MP4
axe record-video --udid $UDID --fps 15 --output recording.mp4
axe record-video --udid $UDID --fps 10 --quality 60 --scale 0.5 --output low-bandwidth.mp4
# 流式传输 MJPEG
axe stream-video --udid $UDID --fps 10 --format mjpeg > stream.mjpeg
# 管道传输到 ffmpeg
axe stream-video --udid $UDID --fps 30 --format ffmpeg | \
ffmpeg -f image2pipe -framerate 30 -i - -c:v libx264 -preset ultrafast output.mp4
按 Ctrl+C 停止录制。AXe 会完成 MP4 文件处理并将路径输出到标准输出。
# 完整屏幕无障碍树
axe describe-ui --udid $UDID
# 特定点的无障碍信息
axe describe-ui --point 100,200 --udid $UDID
axe tap --label "Continue" --pre-delay 2.0 --udid $UDID
for i in {1..5}; do
axe describe-ui --udid $UDID | grep -q "targetElement" && break
axe gesture scroll-down --udid $UDID
done
axe tap --label "targetElement" --udid $UDID
axe tap --label "Email" --udid $UDID
axe type 'user@example.com' --udid $UDID
axe tap --label "Password" --udid $UDID
axe type 'secret123' --udid $UDID
axe tap --label "Sign In" --udid $UDID
axe tap --label "Submit" --post-delay 1.0 --udid $UDID
axe screenshot --output result.png --udid $UDID
每周安装量
125
代码仓库
GitHub 星标数
36
首次出现时间
2026年1月20日
安全审计
已安装于
codex107
opencode106
gemini-cli105
claude-code103
github-copilot95
cursor94
AXe is a single-binary CLI for iOS Simulator automation via Apple's Accessibility APIs and HID.
brew install cameroncooke/axe/axe
# Get simulator UDID
axe list-simulators
UDID="<simulator-udid>"
# Basic interactions
axe tap -x 100 -y 200 --udid $UDID
axe tap --label "Safari" --udid $UDID
axe type 'Hello World!' --udid $UDID
axe gesture scroll-down --udid $UDID
axe button home --udid $UDID
axe screenshot --udid $UDID
# Tap at coordinates
axe tap -x 100 -y 200 --udid $UDID
# Tap by accessibility identifier or label
axe tap --id "myButton" --udid $UDID
axe tap --label "Submit" --udid $UDID
# With timing controls
axe tap -x 100 -y 200 --pre-delay 1.0 --post-delay 0.5 --udid $UDID
# Swipe
axe swipe --start-x 100 --start-y 300 --end-x 300 --end-y 100 --udid $UDID
axe swipe --start-x 50 --start-y 500 --end-x 350 --end-y 500 --duration 2.0 --delta 25 --udid $UDID
# Low-level touch control
axe touch -x 150 -y 250 --down --udid $UDID
axe touch -x 150 -y 250 --up --udid $UDID
axe touch -x 150 -y 250 --down --up --delay 1.0 --udid $UDID
| Preset | Use Case |
|---|---|
scroll-up | Content navigation |
scroll-down | Content navigation |
scroll-left | Horizontal scrolling |
scroll-right | Horizontal scrolling |
swipe-from-left-edge | Back navigation |
swipe-from-right-edge | Forward navigation |
axe gesture scroll-down --udid $UDID
axe gesture swipe-from-left-edge --udid $UDID
axe gesture scroll-up --screen-width 430 --screen-height 932 --udid $UDID
axe gesture scroll-down --pre-delay 1.0 --post-delay 0.5 --udid $UDID
# Direct text (use single quotes for special characters)
axe type 'Hello World!' --udid $UDID
# From stdin (best for automation)
echo "Complex text" | axe type --stdin --udid $UDID
# From file
axe type --file input.txt --udid $UDID
# Individual key press by HID keycode
axe key 40 --udid $UDID # Enter key
axe key 42 --duration 1.0 --udid $UDID # Hold Backspace
# Key sequence
axe key-sequence --keycodes 11,8,15,15,18 --udid $UDID # "hello"
axe button home --udid $UDID
axe button lock --duration 2.0 --udid $UDID
axe button side-button --udid $UDID
axe button siri --udid $UDID
axe button apple-pay --udid $UDID
# Screenshot (auto-generates filename)
axe screenshot --udid $UDID
# Screenshot to specific path
axe screenshot --output ~/Desktop/screenshot.png --udid $UDID
# Video recording to MP4
axe record-video --udid $UDID --fps 15 --output recording.mp4
axe record-video --udid $UDID --fps 10 --quality 60 --scale 0.5 --output low-bandwidth.mp4
# Stream MJPEG
axe stream-video --udid $UDID --fps 10 --format mjpeg > stream.mjpeg
# Pipe to ffmpeg
axe stream-video --udid $UDID --fps 30 --format ffmpeg | \
ffmpeg -f image2pipe -framerate 30 -i - -c:v libx264 -preset ultrafast output.mp4
Press Ctrl+C to stop recording. AXe finalizes MP4 and prints path to stdout.
# Full screen accessibility tree
axe describe-ui --udid $UDID
# Accessibility info at specific point
axe describe-ui --point 100,200 --udid $UDID
axe tap --label "Continue" --pre-delay 2.0 --udid $UDID
for i in {1..5}; do
axe describe-ui --udid $UDID | grep -q "targetElement" && break
axe gesture scroll-down --udid $UDID
done
axe tap --label "targetElement" --udid $UDID
axe tap --label "Email" --udid $UDID
axe type 'user@example.com' --udid $UDID
axe tap --label "Password" --udid $UDID
axe type 'secret123' --udid $UDID
axe tap --label "Sign In" --udid $UDID
axe tap --label "Submit" --post-delay 1.0 --udid $UDID
axe screenshot --output result.png --udid $UDID
Weekly Installs
125
Repository
GitHub Stars
36
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubWarnSocketFailSnykFail
Installed on
codex107
opencode106
gemini-cli105
claude-code103
github-copilot95
cursor94
通过 LiteLLM 代理让 Claude Code 对接 GitHub Copilot 运行 | 高级变通方案指南
40,000 周安装
SwiftUI动画完全指南:从Animatable协议到iOS 26的@Animatable宏
187 周安装
SwiftUI性能优化指南:解决卡顿、滚动延迟与视图更新问题 | iOS 26新工具
187 周安装
AI图像生成工具 - 支持OpenAI、Google、阿里通义万象多平台API调用
188 周安装
用户画像创建指南:AI辅助工具与Python代码示例,提升产品设计与营销效果
192 周安装
iOS Swift并发编程指南:解决async/await、@MainActor、数据竞争与Swift 6迁移
189 周安装
Feishu Image Sender - 向飞书/Lark发送图片的CLI工具和Node.js库
192 周安装
swipe-from-top-edge | Dismiss/close |
swipe-from-bottom-edge | Open/reveal |