360 Secure SkillHub
360 安全技能中心

ios-simulator

通过 agent-device CLI 驱动 iOS 模拟器:按应用名或 bundle id 启动应用,依据交互快照点击、输入、滚动,检查实时 UI、截图与日志,用于验证代码改动、复现工作流并收集失败证据。CLI 需用户自行安装,遇到专有场景时按需查阅对应帮助主题。

callstack
热度 0.00
最近更新 2026-10-19 02:10:14
分类:开发依赖:代码执行应用场景:调试排错 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add callstack/agent-device/ios-simulator
Metadata
name
ios-simulator
description
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.

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.

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