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 從公開儲存庫中收錄這些內容。

檢舉或申請下架