ClaudeMods
☰
KO
● — 명 접속 중 · 조회 — 회
후원프로젝트 제출
GitHub 저장소 · 작성자 Gary_BBGames

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자뿐이라 오류 정보가 하나도 없었습니다. 어떤 파일이 실패했는지는 알았지만 이유를 몰라 소스를 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나 웹사이트에 넣으면 이 페이지로 연결됩니다.

Featured on ClaudeMods
크기
테마
Markdown
HTML

비슷한 프로젝트