mcpField
I
ios-simulator

ios-simulator

github.com/callstack测试与质量5.2k5.3k 次安装今天更新
代码仓库

关于 ios-simulator

ios-simulator 是一项技能,指导 Agent 使用需单独安装的 agent-device 命令行工具操作 iOS 模拟器。它提供任务执行规则,并为特殊流程指向相应帮助主题。

主要功能

  1. 01明确指定 iOS 平台
  2. 02依据交互快照执行操作
  3. 03安装与升级责任说明
  4. 04调试和脚本相关帮助主题

适用场景

  1. 01打开并操作 iOS 应用
  2. 02处理模拟器任务错误
  3. 03查找 React Native 或回放流程指南

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/callstack/agent-device --skill ios-simulator

安装后在 Claude Code 中输入/ios-simulator确认已加载。

详细介绍

iOS 模拟器

驱动模拟器前,需单独安装 agent-device CLI:

npm install -g agent-device@latest

安装和升级属于用户负责的设置步骤。不要自主运行该命令,也不要将其替换为可变的 npx -y agent-device@latest 调用。

对于常规应用操控任务,立即开始。不要先通过 --help、--version、devices、appstate、snapshot 或 screenshot 进行探查。打开应用或 bundle id 时,明确指定 iOS:

agent-device open <app-or-bundle-id> --platform ios --foreground

根据初始交互式快照和纠正性错误提示操作。如果 shell 报告 agent-device 不可用,请停止并让用户安装它,或将其现有安装路径添加到 PATH。

仅当任务较为特殊或命令格式不明确时,才阅读与版本匹配的相关帮助主题:

agent-device help validate        # engineering validation and build freshness
agent-device help debugging       # screenshots, logs, traces, video, and failures
agent-device help react-native    # React Native and Expo runtime guidance
agent-device help react-devtools  # React components, props/state/hooks, render profiling
agent-device help scripting       # durable replay and CI workflows

评论

支持 Markdown