JordanCoin/ios-skills-collection / skills/conorluddy--ios-simulator-skill
ios-simulator-skill
Verified21 production-ready scripts for iOS app testing, building, and automation. Provides semantic UI navigation, build automation, accessibility testing, and simulator lifecycle management. Optimized for AI agents with minimal token output.
references/troubleshooting.md
View on GitHub# Troubleshooting
## Problem → Solution Format
### Simulator won't boot
**Fix:** `killall Simulator && xcrun simctl erase <udid>`
### IDB not connecting
**Fix:** `idb kill && idb companion --boot-status-check`
### App won't launch
**Fix:** `xcrun simctl terminate booted <bundle-id> && xcrun simctl launch booted <bundle-id>`
### Screenshot fails
**Fix:** Ensure simulator booted: `xcrun simctl boot <udid>`
### "No booted devices"
**Fix:** `open -a Simulator` or `xcrun simctl boot <udid>`
### IDB "Target not found"
**Fix:** `idb list-targets` to verify UDID
### Permission denied
**Fix:** `chmod +x scripts/*.sh`
### Python module not found
**Fix:** `pip3 install pillow` (for visual_diff.py)
### Accessibility tree empty
**Fix:** App must be in foreground: `xcrun simctl launch booted <bundle-id>`
### Video recording hangs
**Fix:** Ctrl+C to stop recording, file saves on interrupt
### Logs not showing
**Fix:** Use correct app name: `xcrun simctl spawn booted log stream --predicate 'process == "AppName"'`
### Device storage full
**Fix:** `xcrun simctl erase <udid>` (warning: deletes all data)
## Quick Diagnostics
```bash
# Check simulator state
xcrun simctl list devices | grep Booted
# Verify IDB connection
idb list-targets
# Test basic interaction
xcrun simctl io booted screenshot test.png
```Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |