跳到正文
Skillpedia
移动应用5.2k · #15029

ios-simulator

它能做什么

它使用 agent-device 命令行工具,在 iOS 模拟器上运行和测试原生、React Native、Expo 或 Flutter 应用。适合想验证 iPhone 或 iPad 改动的开发者。

适用场景

  • ✓当你想在模拟器中检查 iPhone 应用的改动时。
  • ✓当你想在 iPhone 或 iPad 模拟器上一步步复现错误时。
  • ✓当你想获取失败的 iOS 应用测试的截图和日志时。

技能链接

https://github.com/callstack/agent-device/blob/main/skills/ios-simulator/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/callstack/agent-device/blob/main/skills/ios-simulator/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请在 iPhone 模拟器中打开我的应用,检查我最近一次改动后登录页面能否加载。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体在模拟器上打开应用,读取屏幕,并通过点击或输入完成各个步骤。如果某一步失败,它会收集截图和调试细节。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

iOS Simulator

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

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:

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.

When you finish, if your session booted the simulator, run agent-device close --shutdown, unless the user asks to keep it running.

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

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
常见问题

我需要先安装什么吗?

需要。在智能体使用之前,你需要自己安装 agent-device 命令行工具。

谁负责升级工具?

由你负责。智能体不会自行运行安装或升级命令。

测试结束后模拟器会怎样?

如果会话是启动它的,智能体会将其关闭,除非你要求保持运行。

详情

作者的原始描述

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.

repo: callstack/agent-device

热度

GitHub 星标
5.2k
排名
#15029
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能