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

Claude가 xcodebuild 컴파일 오류를 직접 읽게 하는 Claude Code Mod

저자는 새 mod 시스템으로 mod를 만들었다: Claude가 Bash로 xcodebuild를 실행해 실패하면 자동으로 -resultBundlePath를 추가하고 xcresulttool로 오류/경고/테스트 실패를 추출하여 Claude가 보는

GGary_BBGames@Gary_BBGames
번역 완료

이 mod 소개

이것은 Claude로 xcodebuild를 실행하는 사용자를 위한 Claude Code mod입니다. 문제는 Bash 명령이 실패하고 출력이 길 때 Claude Code가 모델에게 시작과 끝만 주고 중간은 잘라낸다는 것입니다. 그리고 실패한 xcodebuild는 바로 컴파일 오류를 중간에 둡니다. 저자의 예: 컴파일 오류 세 개가 있는 작은 Swift 패키지, 295줄 로그에서 Claude는 10,039자만 받았고 오류 정보를 전혀 포함하지 않았습니다. 어떤 파일이 실패했는지는 알았지만 이유는 몰랐고, 소스를 grep하고 자체 필터링으로 다시 실행할 수밖에 없었습니다.

이 mod의 방식은: xcodebuild 명령에 -resultBundlePath를 추가한 다음 xcresulttool로 Xcode의 result bundle에서 오류, 경고, 테스트 실패를 읽습니다. Claude가 읽는 내용을 요약으로 대체하며, 같은 테스트에서 요약은 499자였고 보고된 각 오류의 파일, 줄, 열을 포함했습니다. transcript에는 원본 출력이 여전히 남습니다. 또한 파일별로 오류, 실패한 테스트, 경고, 최근 빌드를 그룹화하여 보여주는 패널도 표시합니다.

한계: 저자의 테스트에서는 Claude가 더 적은 빌드 횟수로 프로젝트를 고치게 하지는 못했지만(둘 다 세 번), 오류를 검색할 필요가 없어져 수정이 더 효율적이었습니다. Claude가 Bash로 실행하는 빌드만 볼 수 있고 스크립트, make, fastlane 안의 빌드는 볼 수 없습니다. swift build는 로그에서만 읽습니다. 소스, 설치 안내, 짧은 GIF는 GitHub 저장소에 있습니다

설치

설치 방법은 원본 출처를 확인하세요.

원문 / 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]

원본 출처 보기 ↗

비슷한 프로젝트