simulator-tester
Drives the iOS Simulator for you: it sets up a test scenario, captures screenshots, video, and logs, and reports whether your app behaved as expected. Your assistant reads the screenshots itself, so you can check a fix without clicking through the app.
How to Use This Agent
Natural language (automatic triggering): Ask your assistant things like:
- "Can you test my app with location simulation?"
- "Take a screenshot to verify this fix"
- "Check if the push notification handling works"
- "Navigate to Settings and take a screenshot"
- "Record a video of the app running"
- "Test my app's permission dialogs"
- "Validate my VoiceOver announcements on the simulator"
- "Run my Dynamic Type checks on the simulator"
Explicit command:
/axiom:test-simulatorWhat It Does
Testing Capabilities
- Screenshot capture – Visual verification and debugging
- Video recording – Animation issues, multi-step flows, and crash reproduction
- Location simulation – Sets coordinates to test GPS-based features
- Push notifications – Sends a test payload to your app without a push server
- Permission management – Grants, revokes, or resets privacy permissions such as location, photos, and microphone
- Deep link navigation – Opens a URL to jump straight to a screen
- App lifecycle – Installs, launches, and terminates your app
- UI automation – Uses axui for scoped touch, text, and gestures. It checks for the intended state change after each action.
- Accessibility validation – Applies and restores temporary Dynamic Type, Increase Contrast, Reduce Motion, Reduce Transparency, or VoiceOver settings. It runs native audits and keeps actual speech separate from computed traversal.
- Status bar override – Sets a clean status bar (9:41, full signal, full battery) for screenshots
- Device state via
devicectl– Simulates Face ID and Touch ID matches, whichsimctlcan't, plus orientation changes and memory warnings - Network conditioning – Adds latency, caps bandwidth, or injects failures without
sudo, in-process by default or through toxiproxy if it's installed - Log and crash analysis – Streams your app's logs, checks for new crash reports, and summarizes any it finds with
xcsym
How It Works
The simulator is the agent's way of checking its work, which closes the loop between making a fix and confirming it:
- Checks simulator state, reuses a simulator saved in
.axiom/preferences.yamlif there is one, and boots one if needed - For UI checks, resolves axui and verifies the chosen simulator and app. It also notes whether toxiproxy is available.
- Sets up the scenario: location, permissions, a deep link, network conditions
- Launches the app, waits for the UI to settle, and performs the action
- Captures evidence: screenshots, video, logs
- Reports expected versus actual behavior with a clear pass or fail
- Saves a new simulator choice to
.axiom/preferences.yamlfor next time
Example Usage
Screenshot Verification
You ask: "Take a screenshot to verify the login button fix". The agent:
- Confirms which simulator to use, and boots it if it is shut down
- Navigates to the login screen, if your app has a deep link for it
- Waits for the UI to render
- Captures a screenshot
- Analyzes the image: "The login button appears centered and properly sized"
Location Testing
You ask: "Test my app with location set to San Francisco". The agent:
- Sets the location:
xcrun simctl location <UDID> set 37.7749 -122.4194 - Grants location permission:
xcrun simctl privacy <UDID> grant location-always <bundle-id> - Launches the app
- Takes a screenshot of the map view
- Verifies that the location marker appears at San Francisco's coordinates
Push Notification Testing
You ask: "Send a test push notification and screenshot the result". The agent:
- Writes a test payload file
- Sends the push:
xcrun simctl push <UDID> <bundle-id> payload.json - Waits for the notification to appear
- Captures a screenshot showing it
- Checks the logs to confirm your app handled it
In these examples, <bundle-id> is your app's bundle identifier, such as com.example.MyApp. The agent asks for it if you haven't given it.
Common Scenarios
| Scenario | Capabilities Used |
|---|---|
| Visual bug fix | Screenshot, navigation, and analysis |
| Location feature | Location simulation and permissions |
| Push handling | Push notification and log capture |
| Permission dialog | Permission management and screenshot |
| Crash reproduction | App lifecycle, log capture, and crash analysis |
| Accessibility check | Accessibility state toggles and tree assertions |
| Slow-network behavior | Network conditioning and screenshot |
| App Store screenshots | Status bar override and navigation |
Requirements
- Xcode with the iOS Simulator installed
- Your app built for the simulator
- axui for native UI and accessibility checks
- Optional: debug-only deep links, so the agent can jump to any screen (see deep-link-debugging below)
Real-World Impact
A typical visual-fix loop:
- Before – Make the fix, rebuild, navigate five screens by hand, and check visually: about 3 minutes
- After – Make the fix, rebuild, and let the agent navigate, capture, and verify: about 1 minute
Related
- /axiom:screenshot – One quick screenshot, without a test scenario
- /axiom:ui – Guided axui UI and accessibility testing
- axui Reference – Scoped UI journeys, native audits, and VoiceOver evidence.
- device-control-ref – The
devicectlandsimctlcatalog, including status bar overrides for screenshots - deep-link-debugging – Add debug-only deep links so the agent can navigate your app
- ui-testing – The in-process network-conditioning harness and UI test patterns
- accessibility-auditor – Scans your source for accessibility issues; this agent validates them live
- test-runner – Runs your XCUITest suites and parses the results
- build-fixer – Fixes the build when the app won't compile for the simulator
- screenshot-validator – Checks captured App Store screenshots before submission