Debug iOS apps and profile performance using LLDB, Xcode Memory Graph Debugger, and Instruments. Use for crashes, retain-cycle inspection, hangs, build failures, and CPU/memory/energy/network profiling.
Ships in all-ios-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Diagnose crashes, memory leaks, hangs, and performance bottlenecks using LLDB, Xcode Memory Graph Debugger, unified logging/signposts, and Instruments.
Scope Boundary: Route command-line
.memgraphanalysis toios-memgraph-analysisand ETTrace tracing toios-ettrace-performance.
Follow a structured, non-invasive triage loop:
v, falling back to po only for formatted descriptions.(lldb) br set -f OrderViewModel.swift -l 42 # Break at file and line
(lldb) v orderState # Inspect variable without code execution
(lldb) po orderState # Print debug description
(lldb) bt all # Print backtrace for all threads
(lldb) frame select 2 # Switch execution frame
(lldb) br modify 1 -c "orderId == 404" # Set condition on breakpoint
(lldb) w set v self.totalAmount # Watchpoint on memory mutation
Enable Malloc Stack Logging (Edit Scheme > Run > Diagnostics) to record allocation backtraces.
Common fix: break closure cycles using [weak self] or assign delegates weakly (weak var delegate: SomeDelegate?).
Diagnose main thread stalls and measure execution intervals using unified logging and OSSignposter:
import os
let logger = Logger(subsystem: "com.example.app", category: "DataSync")
let signposter = OSSignposter(logger: logger)
func loadRecords() async throws {
let signpostID = signposter.makeSignpostID()
let state = signposter.beginInterval("LoadRecords", id: signpostID)
defer { signposter.endInterval("LoadRecords", state) }
// Intensive operation
}
View intervals and subsystem events in Instruments under the os_signpost instrument.
Always profile in Release configuration outside the debugger (Product > Profile):
xctrace record accepts recording options as JSON; xctrace export gains time-range arguments and accepts .atrc and .logarchive input.Sources: https://sosumi.ai/documentation/xcode-release-notes/xcode-27-release-notes, https://sosumi.ai/documentation/ios-ipados-release-notes/ios-ipados-27-release-notes
po for simple inspection: po evaluates expressions via the Swift runtime and can cause unexpected side effects or deadlocks. Use v to read values safely.@MainActor trigger main-thread hangs.v over po to avoid side effects[weak self] or weak delegatesWhat SKILL.md sets; muted values are Claude Code's defaults
/all-ios-skills:debugging-instrumentsfrom all-ios-skills
npx claudepluginhub thienqo/ios-skills --plugin all-ios-skills95 skills in this plugin
/accessorysetupkitDiscover and configure Bluetooth and Wi-Fi accessories using AccessorySetupKit. Use when presenting a privacy-preserving accessory picker, defining discovery descriptors for BLE or Wi-Fi devices, handling accessory session events, migrating from CoreBluetooth permission-based scanning, or setting up accessories without requiring broad Bluetooth permissions./activitykitBuild or review Live Activities and Dynamic Island experiences with ActivityKit, including lifecycle, layouts, push updates, and scheduled delivery. Use for time-sensitive Lock Screen or Dynamic Island state; route ordinary widgets to widgetkit./adattributionkitMeasure ad effectiveness with privacy-preserving attribution using AdAttributionKit. Use when registering ad impressions, handling attribution postbacks, updating conversion values, implementing re-engagement attribution, configuring publisher or advertiser apps, or replacing SKAdNetwork with AdAttributionKit for ad measurement./alarmkitBuilds AlarmKit alarms and countdowns with system Lock Screen, Dynamic Island, StandBy, and Apple Watch presentation. Use for authorization, AlarmManager scheduling, stop/secondary actions, countdown extension handoff, state observation, or Live Activity-backed alarm experiences./app-clipsBuilds App Clips and their invocation, routing, App Store Connect experiences, size/capability limits, promotion, data handoff, notifications, and full-app migration. Use for App Clip Codes, URLs, NFC/QR, Safari/Maps/Messages invocation, NSUserActivity, or App Group/keychain transfer./app-intentsImplement App Intents for Siri, Shortcuts, Spotlight, widgets, Control Center, and Apple Intelligence on iOS. Covers AppIntent actions, AppEntity and EntityQuery models, AppShortcutsProvider phrases, IndexedEntity Spotlight indexing, WidgetConfigurationIntent, SnippetIntent, and assistant schemas. Use when exposing app actions or entities to system surfaces.Other plugins' skills for the same job