ios-simulator
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseiOS Simulator
iOS Simulator
Use on an iOS Simulator to verify a running app. Work from the live UI, act on current refs or selectors, and verify the result before closing the session.
agent-deviceFor an app or bundle id, open it in the foreground:
bash
agent-device open <app-or-bundle-id> --platform ios --foregroundopen--settlebash
agent-device press @eN --settle
agent-device fill @eN "text" --settleRun only when the settled diff does not show the next target. never takes ; verify it with a snapshot or named . Keep state-changing commands serial. Verify the end state with a selector or exact text, then close:
agent-device snapshot -itype--settlewaitbash
agent-device closeFor non-routine work, use the version-matched CLI help:
bash
agent-device help validateRead only the relevant follow-up topic for specialized work:
bash
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 # component tree, props/state/hooks, and renders
agent-device help scripting # durable replay and CI workflowsIf platform help says a capability is unavailable, follow it. Keep diagnostic output when verification fails.
使用在iOS Simulator上验证运行中的应用。基于实时UI操作,针对当前引用或选择器执行操作,并在关闭会话前验证结果。
agent-device针对应用或bundle ID,将其在前台打开:
bash
agent-device open <app-or-bundle-id> --platform ios --foregroundopen--settlebash
agent-device press @eN --settle
agent-device fill @eN "text" --settle仅当稳定后的差异未显示下一个目标时,才运行。命令从不接受参数;请通过快照或命名的命令验证其结果。保持状态变更命令串行执行。使用选择器或精确文本验证最终状态,然后关闭会话:
agent-device snapshot -itype--settlewaitbash
agent-device close对于非常规工作,请使用版本匹配的CLI帮助:
bash
agent-device help validate仅阅读专业工作相关的后续主题:
bash
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 # component tree, props/state/hooks, and renders
agent-device help scripting # durable replay and CI workflows如果平台帮助显示某项功能不可用,请遵循其指引。当验证失败时,请保留诊断输出。