프로젝트를 클론하며 Tuist fetch
명령어 실행 중 마주한 아래와 같은 에러 메시지
remy@ ios % tuist fetch
Version 3.17.0 not found locally. Installing...
Downloading version 3.17.0
Installing…
Version 3.17.0 installed
Resolving and fetching plugins.
Plugins resolved and fetched successfully.
Resolving and fetching dependencies.
Installing Swift Package Manager dependencies.
error: 'swiftpackagemanager': Invalid manifest
/Users/remy/ios/Tuist/Dependencies/SwiftPackageManager/Package.swift:2:8: error: no such module 'PackageDescription'
import PackageDescription
^
The 'swift' command exited with error code 1
Consider creating an issue using the following link: https://github.com/tuist/tuist/issues/new/choose
no such module 'PackageDescription'
가 주된 에러메시지 같아 구글링을 하였다.
Xcode 경로가 Applications이 아닌 다른 경로로 되어있어서 발생한 오류였다.
xcode-select --print-path
위 명령어를 터미널에 쳤을 때 나오는 경로와 다른곳에 있던 Xcode를 응용프로그램 폴더로 옮겨주었더니 오류는 사라졌다.
https://forums.kodeco.com/t/server-error-no-such-module-packagedescription/177438