Repository navigation
[Offline Xcode Log Triage]: Private on-device debugging for Xcode logs #774
rahulraonatarajan
started this conversation in
Skills
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Skill Webhost Path
https://rahulraonatarajan.github.io/offline-xcode-log-triage
Skill Source Repository
https://github.com/rahulraonatarajan/offline-xcode-log-triage
Skill Description
Offline Xcode Log Triage is a text-only Agent Skill that helps iOS and macOS developers paste Xcode logs and receive a structured debugging plan — entirely on-device with Gemma.
Xcode logs are noisy, long, and often contain sensitive project details: local file paths, bundle identifiers, signing metadata, internal class names, stack traces, and sometimes secrets. Developers need help finding the first meaningful error, not just the final generic "Build failed" line. An on-device workflow means none of this data leaves the device.
What it does:
Skill type:
Screenshots
Structured triage output — Summary, Category, Most Likely Root Cause:
Skill loaded and triage output begins — Gemma-4-E4B-it on GPU (iOS):
Example prompts
For developers building native apps
One limitation we noticed when using this skill with Gemma in the Gallery app is that very long logs can exceed the model's context window, resulting in degraded or garbled output. This is expected — on-device models have finite context budgets, and full Xcode build logs can be thousands of lines.
To solve this, we built mlx-swift-chain — a Swift package that handles logs of any length by chunking them (via
LogChunkerandAppleCrashReportChunker), mapping each chunk through the model, and reducing the results. It includes pre-built prompt templates forxcodeBuildFailure,appleCrashTriage,logRootCause, andtestFailureAnalysis— all running on-device with MLX Swift on Apple Silicon.For shorter logs, this Gallery skill works well as a quick paste-and-triage tool. For full-length build logs or automated pipelines, mlx-swift-chain provides the programmatic path.
How to use
https://rahulraonatarajan.github.io/offline-xcode-log-triageAuthors
Feedback requested
All reactions