/capacitor-quality:ios-android-logsfrom capacitor-quality
Gets, filters, streams, and saves logs and crash reports from Capacitor apps on iOS and Android. Explains where Capacitor output goes and why console.log may be missing from standard tools.
Ships in capacitor-quality. 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.
Pick the log channel that actually carries the message you need, filter to the app, capture to a file, hand off to diagnosis.
TRIGGER when:
console.log output or ⚡️ Capacitor lines are missing on iOS/Android..ips, tombstone, ANR) from a device or simulator.--level error still shows everything, unable to find utility "devicectl", Error: Unexpected argument 'log', adb: no devices/emulators found.Do not use:
debugging-capacitor.capacitor-native-observability.capacitor-mcp.capacitor-performance.capacitor-uiscene-migration.| Source | iOS | Android |
|---|---|---|
Capacitor bridge messages (⚡️ Loading app at ..., ⚡️ To Native ->, errors) | stdout only (print) | logcat tag Capacitor and Capacitor/<Sub> |
JS console.log/warn/error mirrored natively | stdout as ⚡️ [log] - ... | logcat tag Capacitor/Console as File: ... - Line N - Msg: ... |
| JS console, full fidelity (objects, stack traces) | Safari Web Inspector | chrome://inspect |
Plugin/app code using os.Logger / NSLog | unified log (Console.app, log stream) | n/a |
Plugin code using android.util.Log / Capacitor Logger | n/a | logcat |
| Native crash | .ips crash report | FATAL EXCEPTION in logcat + crash buffer; tombstone for native code |
Consequences:
log stream will not show Capacitor's ⚡️ lines or mirrored JS console. Use Xcode's console, xcrun simctl launch --console-pty, or xcrun devicectl device process launch --console.loggingBehavior (none | debug | production, default debug): Release builds produce no Capacitor logs unless set to production.App in the Capacitor template), not the display name. Filter with process == "App".# iOS Simulator: Capacitor + JS console (stdout), relaunching the app
xcrun simctl launch --console-pty --terminate-running-process booted com.example.app
# iOS Simulator: unified log for the app (os_log / NSLog / system messages)
xcrun simctl spawn booted log stream --level debug --predicate 'process == "App"'
# iPhone: install + launch with stdout attached (Xcode 15+ devicectl)
xcrun devicectl list devices
xcrun devicectl device process launch --console --terminate-existing --device <id> com.example.app
# iPhone: unified log snapshot of the last 10 minutes
sudo log collect --device-udid <udid> --last 10m --output /tmp/iphone.logarchive
log show /tmp/iphone.logarchive --predicate 'process == "App"' --info --debug
# Android: only this app (re-run after each app restart, PID changes)
adb logcat --pid="$(adb shell pidof -s com.example.app)"
# Android: Capacitor + JS console only
adb logcat -s Capacitor:V Capacitor/Console:V
# Android: crashes only
adb logcat -b crash
xcrun simctl list devices booted, xcrun devicectl list devices (device must be unlocked, trusted, Developer Mode on), adb devices -l.adb logcat -c on Android; on iOS start the stream before relaunching the app.> app.log, .logarchive, adb bugreport) when the user needs to share it; redact tokens, emails, and auth headers before sharing outside the team.debugging-capacitor for root-cause work.| Message | Fix |
|---|---|
--level error still shows every message | log stream --level only understands default, info, debug (it sets the floor, not a ceiling). Filter errors with --predicate 'messageType == error OR messageType == fault'. |
xcrun: error: unable to find utility "devicectl" | Active dev dir is Command Line Tools. sudo xcode-select -s /Applications/Xcode.app/Contents/Developer. |
Error: Unexpected argument 'log' (devicectl) | devicectl has no log streaming subcommand. Use --console for stdout, Console.app or log collect --device-udid for unified logs. |
log collect fails with a permission error | Run with sudo; device must be unlocked and trusted. |
No devices are booted. (simctl) | xcrun simctl boot "<device name>" or open Simulator. |
adb: no devices/emulators found / unauthorized | Enable USB debugging, accept the RSA prompt, adb kill-server && adb start-server. |
adb logcat --pid= prints everything / errors | App not running so pidof returned nothing. Launch the app first. |
No Capacitor/Console lines on Android | loggingBehavior: 'none', or Release build with default debug. |
JS logs show but objects print as [object Object] | Native mirroring stringifies; use the WebView inspector for structured output. |
--console-pty, see ⚡️ Loading app at capacitor://localhost and a test console.log('log-check') as ⚡️ [log] - log-check.devicectl device process launch --console.adb logcat -s Capacitor/Console:V shows Msg: log-check.Logger(subsystem: "com.example.app", category: "test").info("log-check") appears with --predicate 'subsystem == "com.example.app"' --level info.Only load a reference when its topic is in play.
| File | Load when |
|---|---|
references/ios-logs.md | Unified log predicates, Console.app, log collect/log show, iOS crash reports via devicectl/Xcode, adding os.Logger to a plugin |
references/android-logs.md | logcat buffers/formats/filters, Android Studio Logcat queries, ANRs, tombstones, bugreports, WebView (chromium) noise |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
capacitor-logs, ios-logs, android-logs, logcat, crash-reports
7 skills in this plugin
/capacitor-accessibilityMakes Capacitor apps work with VoiceOver, TalkBack, Dynamic Type / Android font scale, Switch Control, hardware keyboards, Reduce Motion and Increase Contrast. Covers Capacitor-specific gaps - WKWebView not following iOS Dynamic Type, Android WebView text zoom breaking layouts, zoomEnabled/user-scalable, SPA route changes not announced, native views under the WebView (maps, camera preview) being unreachable, @capacitor/screen-reader (isEnabled, speak, stateChange) and @capacitor/text-zoom (getPreferred, set) - plus testing with Accessibility Inspector, simctl content_size, adb font_scale, TalkBack and axe-core, mapped to WCAG 2.2. Do not use for Ionic component styling (use ionic-design), notch/home-indicator layout (use safe-area-handling), keyboard overlap bugs (use capacitor-keyboard), automated test framework setup (use capacitor-testing), or App Store metadata (use capacitor-app-store)./capacitor-ios-security-hardeningAudits and progressively hardens Xcode security build settings for a Capacitor iOS app (ios/App/App.xcodeproj, scheme App) and native plugin code (Swift/ObjC/C, Package.swift, podspec). Covers `xcodebuild -showBuildSettings -json`, security compiler warnings, static analyzer checkers (`xcodebuild analyze`), Xcode Enhanced Security (ENABLE_ENHANCED_SECURITY, com.apple.security.hardened-process entitlements, pointer authentication / arm64e, memory tagging soft mode), what is safe for a WKWebView hybrid app vs what breaks CocoaPods, SPM binary xcframeworks or Cordova plugins, staged adoption, and a decision log. Use for "harden my iOS build", "enable Enhanced Security", security build settings audit, arm64e link errors after enabling pointer authentication, or Build and Analyze setup. Do not use for ATS/TLS, signing, secrets or WebView rules (capacitor-security), or App Store review (capacitor-apple-review-preflight).npx claudepluginhub cap-go/capgo-skills --plugin capacitor-qualityOther plugins' skills for the same job