Tuist 실행을 위한 - ci_post_clone.sh 스크립트 적용 후 에러 메시지
에러 메시지:
:exclamation:️tuist install
Resolving and fetching plugins.
Plugins resolved and fetched successfully.
Resolving and fetching dependencies.
error: ‘tuist’: Invalid manifest (compiled with: [“/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc”, “-vfsoverlay”, “/Volumes/workspace/tmp/TemporaryDirectory.jwgdlM/vfs.yaml”, “-L”, “/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/pm/ManifestAPI”, “-lPackageDescription”, “-Xlinker”, “-rpath”, “-Xlinker”, “/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/pm/ManifestAPI”, “-target”, “x86_64-apple-macosx13.0", “-sdk”, “/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk”, “-F”, “/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks”, “-I”, “/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib”, “-L”, “/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib”, “-swift-version”, “5", “-I”, “/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/pm/ManifestAPI”, “-sdk”, “/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk”, “-package-description-version”, “5.9.0", “/Volumes/workspace/repository/Tuist/Package.swift”, “-o”, “/Volumes/workspace/tmp/TemporaryDirectory.Cup3Bp/tuist-manifest”])
Missing or empty JSON output from manifest compilation for tuist
... 생략
주요 에러 코드:
- ‘tuist’: Invalid manifest
- Missing or empty JSON output from manifest compilation for tuist
- “/Volumes/workspace/repository/Tuist/Package.swift”
➡️ Tuist에서 Manifest를 찾지 못함 찾지 못함, Manifest compliation에서 JSON output이 비어있음
What is Tuist manifest??
➡️ configure the generation process. These files are referred to as manifest files throughout the documentation.
우리 팀은 멀티 모듈을 위한 WorkSpace를 manifetst로 기본으로 사용하고 있음
But, Tuist는 manifest를 찾지 못하는 문제...
어떤 manifest를 못 찾을까?? ChatGPT한테 물어봄
위의 에러 코드 중
“/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk”, “-package-description-version”, “5.9.0", “/Volumes/workspace/repository/Tuist/Package.swift”,
이 코드가 핵심!!
➡️ 추후 SPM 패키지 의존성을 위해 프로젝트에 Tuist/Package.swift 빈 파일이 존재함
이 파일을 파싱해서 계속 빈 JSON을 보낸다고 추측함...
이 파일을 제거하고 실행함 -> commit: 9256d85 -> 성공
이 파일에 임시 Alamofire를 SPM으로 가져오는 코드 삽입 후 실행함 -> commit: 04082ba -> 성공
✅ 결론: 추후 SPM을 사용할 때 Tuist/Package.swift를 구성해야함!! 현재는 삭제함
Git Issue
https://github.com/YAPP-Github/26th-App-Team-2-iOS/issues/8
[FEATURE] Xcode Cloud 설정 추가 · Issue #8 · YAPP-Github/26th-App-Team-2-iOS
어떤 기능인가요? 추가하려는 기능에 대해 간결하게 설명해주세요 작업 상세 내용 Xcode Cloud 추가 참고사항 Upstream 전략이 아닌 Yapp 브랜치에 직접 작업을 진행합니다. 관련 이유 팀 전체의 일관
github.com
With
https://github.com/derrickkim0109
댓글