AXe Reference
Reference for AXe, an optional third-party CLI for iOS Simulator input and capture. Use this guide when you choose to run AXe directly. Axiom's native UI tool does not require it.
Xcode 27 and SimulatorKit – Xcode 27 moved
SimulatorKit.frameworktoContents/SharedFrameworks/. AXe 1.8.0 handles that location. If you choose to use AXe, check its version and verify it works with the selected Xcode.
When to Use This Reference
Use this reference when:
- Maintaining a script that calls AXe explicitly
- Tapping elements by accessibility identifier or label instead of fragile coordinates
- Recording or streaming video from the simulator on the command line
- Inspecting the accessibility tree to discover element identifiers
- Building CI scripts that interact with the simulator's UI
Example Prompts
Questions you can ask your assistant that will draw from this reference:
- "How do I tap a button by accessibility ID with AXe?"
- "How do I type text into a simulator field with AXe?"
- "How do I record video from the simulator?"
- "How do I inspect the UI tree to find element identifiers?"
- "Why does
axe tapreport success when nothing happened?" - "What's the difference between AXe and simctl?"
- "How do I automate a login flow in the simulator?"
What's Covered
Setup
- Installing with Homebrew
- Finding the simulator UDID
Touch and Gestures
- Tapping by accessibility identifier, label, or coordinates, in that order of preference
--tap-style physical- Low-level touch events and long presses
- Custom swipes and gesture presets for scrolling and edge swipes
Text and Buttons
- Typing text from an argument, stdin, or a file
- Keys by HID keycode and key sequences
- Hardware buttons: home, lock, side button, Siri, Apple Pay
Capture and Inspection
- Screenshots
- Video recording and streaming
describe-uifor the full accessibility tree, or the element at a point
Workflows and Timing
- Login flows, discovering elements before automating, scroll-to-find, screenshot on error
- Timing controls:
--pre-delay,--post-delay,--delay,--duration
Comparison and Troubleshooting
- AXe vs.
simctlcapabilities - Element not found, taps that do nothing, text input problems, permission errors
Key Pattern
Always inspect the UI tree before automating interactions:
# 1. Get the UI tree with element identifiers
axe describe-ui --udid $UDID
# 2. Tap by accessibility ID (most stable)
axe tap --id "loginButton" --tap-style physical --udid $UDID
# 3. Or by label (stable, but may change with localization)
axe tap --label "Login" --tap-style physical --udid $UDIDPriority order: --id (most stable), then --label, then -x -y coordinates as a last resort.
Pass --tap-style physical. AXe's default tap style left SwiftUI buttons, list rows, menus, and tabs untouched in testing on Xcode 27.1, while AXe still reported ✓ … completed successfully. axe touch --down --up sends the same physical touch. Confirm the UI changed rather than trusting the exit status.
Documentation Scope
This page documents the axe-ref skill (in the axiom-xcode-mcp suite), a guide to direct AXe workflows. AXe handles UI interaction only; for device lifecycle, permissions, push notifications, and deep links, see Device Control.
Related
- axui Reference – Axiom's native UI and accessibility CLI, which runs independently of AXe.
- simulator-tester – Agent that drives the simulator with axui, not AXe
- UI Testing – Xcode UI tests with Recording UI Automation, for flows you want in your test suite rather than a script