# IOS Simulator Reset

> Nuclear option - reset simulator and rebuild from scratch

- Skill: `majiayu000/ios-simulator-reset` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/ios-simulator-reset`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/ios-simulator-reset/raw
- Safety review: pending (external: skill-scanner PASS, skillspector CAUTION)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/ios-simulator-reset

---


# iOS Simulator Full Reset

When things are really broken, start fresh:

1. **Shutdown all simulators:**
```bash
xcrun simctl shutdown all
```

2. **Clean build artifacts:**
```bash
make clean
rm -rf ~/Library/Developer/Xcode/DerivedData/Leavn-*
```

3. **Reset simulator (optional - destructive):**
```bash
# Delete and recreate simulator
xcrun simctl delete [DEVICE_ID]
xcrun simctl create "Leavn Fresh" "iPhone 16 Pro"
```

4. **Fresh build:**
```bash
make sim-build
```

5. **Install and launch:**
```bash
make sim-run
```

**Use this when:**
- "It works in Xcode but not via make"
- Persistent runtime errors that don't make sense
- Simulator state is corrupted
- Nothing else works

**Return status of each step.**

