Ios Simulator

作者 callstack5ee37f30a8df无许可证4.9K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

Verify and debug native, React Native, Expo, or Flutter apps on an iOS Simulator with agent-device. Use when an agent needs to launch an app, inspect its live UI, tap, type, scroll, validate a code change, collect failure evidence, or reproduce a workflow on an iPhone or iPad Simulator.

AI 生成的概览

通过 agent-device CLI 操作 iOS 模拟器,启动应用、查看实时界面并验证改动。

功能
该技能为智能体提供通过单独安装的 agent-device CLI 操作 iOS 模拟器的说明。内容包括在 iOS 平台上打开应用或 bundle id、获取交互式快照,以及点击、输入和滚动以查看实时界面。它还指引读取与版本匹配的帮助主题,涵盖验证、调试、React Native、React DevTools 和脚本化。
适用场景
适用于智能体需要在 iPhone 或 iPad 模拟器上启动并操作原生、React Native、Expo 或 Flutter 应用的场景。适合验证代码改动、收集失败证据或在模拟器中复现某个工作流程。
运行要求
需要单独安装 agent-device CLI(通常通过全局 npm 安装)并使其在 PATH 中可用;安装与升级由用户自行完成。该技能仅为说明文档,不附带脚本。

iOS Simulator

Require the agent-device CLI to be installed separately before driving a simulator:

bash
npm install -g agent-device@latest

Treat installation and upgrades as user-owned setup steps. Do not run that command autonomously or substitute a mutable npx -y agent-device@latest invocation.

For a normal app-driving task, start immediately. Do not probe first with --help, --version, devices, appstate, snapshot, or screenshot. Target iOS explicitly when opening an app or bundle id:

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

Follow the initial interactive snapshot and corrective error hints. If the shell reports that agent-device is unavailable, stop and ask the user to install it or expose their existing installation on PATH.

Only when the task is specialized or a command shape is unclear, read the relevant version-matched help topic:

bash
agent-device help validate        # engineering validation and build freshnessagent-device help debugging       # screenshots, logs, traces, video, and failuresagent-device help react-native    # React Native and Expo runtime guidanceagent-device help react-devtools  # component tree, props/state/hooks, and rendersagent-device help scripting       # durable replay and CI workflows

来源与署名

来源:callstack/agent-device位于skills/ios-simulator提交5ee37f3

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架