ios-memgraph-leaks
Installation
SKILL.md
iOS Memgraph Leaks
Use this skill to prove iOS leaks from a live simulator process or an existing .memgraph. Pair it with ../ios-debugger-agent/SKILL.md when the task also needs simulator build, install, launch, UI driving, logs, or screenshots.
Core Workflow
- Build, launch, and drive the exact flow that should release objects.
- Capture a memgraph from the running simulator process with
scripts/capture_sim_memgraph.sh. - Summarize leaks with
scripts/summarize_memgraph_leaks.py. - For each app-owned leaked type, inspect ownership with
leaks --traceTree=<address> <file.memgraph>and grouped leak evidence. - Make the smallest root-cause patch, then recapture the same flow on the same simulator when possible.
- Report proof: before/after leak counts, disappeared root types, remaining leaks, memgraph paths, and test/build results.
Do not claim a leak fix from a smaller memgraph alone. A credible fix explains the ownership path that kept the object alive and shows that the same path or type disappears after the patch.
Capture
Prefer capturing from the simulator already used for the reproduction. Resolve the simulator UDID and app bundle identifier, then capture the running app: