griches/xcpane
Claude が xcodebuild のコンパイルエラーを直接読める Claude Code mod
作者が新しい mod システムで作った mod。Bash 経由の Claude の xcodebuild が失敗すると、自動で -resultBundlePath を追加し、xcresulttool でエラー・警告・テスト失敗を抽出して Claude に見せます。
この mod について
これは xcodebuild を Claude と一緒に使う人向けの Claude Code mod です。Bash コマンドが失敗し、出力が長いと、Claude Code は先頭と末尾だけをモデルに渡して途中を切り捨てます。失敗した xcodebuild では、コンパイルエラーがちょうどその途中に入ります。作者の例では、小さな Swift package に 3 つのコンパイルエラーがあり、ログは 295 行でした。Claude が受け取ったのは 10,039 文字だけで、エラー情報は 1 つもありません。どのファイルが失敗したかは分かっても理由は分からず、ソースを grep して独自のフィルター付きで再実行するしかありませんでした。
この mod は、xcodebuild コマンドに -resultBundlePath を追加し、xcresulttool で Xcode の result bundle からエラー、警告、テスト失敗を読み取ります。そして Claude が読む内容を要約に置き換えます。同じテストでは、その要約は 499 文字で、報告されたすべてのエラーについてファイル、行、列を含んでいました。トランスクリプトには元の出力も残ります。ファイルごとにエラー、失敗したテスト、警告、最近のビルドをまとめたパネルも表示します。
制限として、作者のテストでは Claude が少ないビルド回数でプロジェクトを直せるようにはなりませんでした(どちらも 3 回)。ただし、エラーを探す必要がなくなったため修正は効率的になりました。Claude が Bash 経由で実行したビルドしか見られず、スクリプト、make、fastlane 内のビルドは対象外です。swift build はログからのみ読み取ります。ソース、インストール手順、短い GIF は GitHub リポジトリにあります。
インストール
まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。
claude plugin marketplace add griches/xcpane claude plugin install xcpane@griches
原文 / README
I built a mod for Claude Code with the new mod system. It's for anyone who lets Claude run xcodebuild. When a Bash command fails with long output, Claude Code gives the model the start and the end and cuts out the middle. A failing xcodebuild puts the compiler errors in the middle. On a small Swift package with three compile errors, the log was 295 lines and Claude received 10,039 characters, none of them an error message. It knew which files failed but not why, so it grepped the source and re-ran the build through its own filter. It: - Appends -resultBundlePath to the xcodebuild command and reads errors, warnings and test failures from Xcode's result bundle with xcresulttool. - Replaces what Claude reads with a summary: in the same test, 499 characters with every reported error's file, line and column. The transcript keeps the raw output. - Shows a pane with errors grouped by file, failed tests, warnings and recent builds. It doesn't: It didn't make Claude fix the project in fewer builds in my test (three either way) but it does make it fix the issues more efficiently as it doesn't need to search the errors. It only sees builds Claude runs through Bash, not builds inside scripts, make or fastlane. swift build is read from the log only. Source, install instructions and a short GIF: https://github.com/griches/claude-xcode-mod (MIT) Happy to answer questions about the mod API, since there isn't much written about it yet. submitted by /u/Gary_BBGames [link] [comments]
バッジを取得
あなたのプロジェクトですか?このバッジを README やサイトに貼ると、このページにリンクします。


