✳ClaudeModsClaude Code mod 디렉터리
☰
● 0 명 접속 중 · 조회 0 회
+ 프로젝트 제출
← 프로젝트 목록으로
Reddit 게시물 · 개발 및 디버깅 / 도구 및 연동 / 워크플로 및 CI

Claude Code Xcode 빌드 오류 추출 mod

저자가 Claude Code의 새로운 mod 시스템을 위해 개발한 확장 기능: 실패한 xcodebuild 로그 중간의 컴파일러 오류를 추출하여 잘린 로그 대신 사용함으로써 Claude가 오류 파일, 줄, 열을 직접 읽을 수 있게 한다.

GGary_BBGames@Gary_BBGames
번역 완료

이 mod 소개

이 mod는 Claude Code가 xcodebuild를 호출할 때의痛点을 해결한다: Bash 명령 출력이 너무 길면 Claude Code는 시작과 끝만 모델에 전달하고 중간 부분을 잘라내는데, 실패한 xcodebuild는 마침 컴파일 오류를 중간에 둔다. 저자의 테스트에서 컴파일 오류가 세 개뿐인 Swift 패키지 로그가 295줄에 달했고, Claude는 10,039자를 받았지만 오류 메시지는 하나도 없었으며, 어떤 파일이 실패했는지만 알 뿐 이유는 몰라서 직접 소스를 grep하고 빌드 출력을 다시 필터링해야 했다. mod의 방식은 xcodebuild 명령에 -resultBundlePath를 추가하고, xcresulttool로 Xcode의 result bundle에서 오류, 경고, 테스트 실패를 읽어 Claude가 읽는 내용을 요약으로 대체하는 것이다—같은 테스트에서 499자로 줄었고 각 오류의 파일, 줄, 열을 포함했다; transcript는 원본 출력을 그대로 유지한다. 또한 오류, 실패한 테스트, 경고, 최근 빌드를 파일별로 그룹화하여 보여주는 패널이 있다. 한계: 수정에 필요한 빌드 횟수를 줄이지는 않는다(테스트에서는 모두 세 번) 하지만 로그를 뒤지고 검색하는 수고는 덜어준다; Claude가 Bash를 통해 실행한 빌드만 볼 수 있고, 스크립트, make, fastlane 내부의 빌드는 볼 수 없다; swift build는 로그에서만 읽을 수 있다. 소스 코드와 설치 설명은 GitHub(MIT)에 있다.

설치

먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.

参见 https://github.com/griches/claude-xcode-mod 的安装说明
원문 / 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. What the mod does: 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. What it doesn't do: It didn't make Claude fix the project in fewer builds in my test (three either way) but it did make you fix it more efficiently as it didn't need to go through the logs and search. 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]

원본 출처 보기 ↗

비슷한 프로젝트