brunch

You can make anything
by writing

C.S.Lewis

by 이응 Mar 18. 2024

Tuist 버전 다운그레이드(변경) 하기 (iOS)

프로젝트에서 Tuist 3.x 버전을 쓰다가 Tuist 4.x 버전으로 넘어가니 Tuist install이 잘 되지 않았다.

또한 tuist fetch 가 deprecated되고 생긴 install로 이제 의존성 등을 external로 관리할 수 있게 되었다.

tuist의 바뀐 명령어에 대한 정보가 부족하기도 하고, 터미널에서 여러 알 수 없는 문제가 발생하여, tuist 버전을 Tuist 3.20.0 버전으로 다운그레이드 하기로 하였다.


tuist 의 버전을 변경하거나 다운로드 하는 방법은 다양하지만 나에겐 가장 간단했던 방법을 게시하기로 했다



tuist 현재 버전 지우고, 변경하기

1. tuist uninstall

curl -Ls https://uninstall.tuist.io | bash


2. tuist 버전 지정해서 다운로드

brew install tuist@x.y.z

x.y.z 에 버전 ex) 3.20.0 식으로 넣기


여기서 다운로드는 정상적으로 되었는데 이런 오류가 뜬다면 3번까지 진행

==> Downloading https://formulae.brew.sh/api/cask.jws.json ######################################################################### 100.0% Warning: tuist/tuist/tuist@3.20.0 3.20.0 is already installed, it's just not linked. To link this version, run: brew link tuist@3.20.0


3.  링크하기

brew link tuist@3.20.0


3번 진행 후에  아래와 같은 오류가 발생한다면 4번을 진행합니다.

Error: Could not symlink bin/tuist Target /opt/homebrew/bin/tuist is a symlink belonging to tuist@4.6.0. You can unlink it: brew unlink tuist@4.6.0

To force the link and overwrite all conflicting files: brew link --overwrite tuist@3.20.0

To list all files that would be deleted: brew link --overwrite tuist@3.20.0 --dry-run


4. 이전에 링크된 tuist 버전을 링크 해제하기

brew unlink tuist@4.6.0


이런 식으로 버전을 바꿀 수 있습니다.



관련 내용에 대해 더 자세히 알고 싶거나, 다른 방법을 알고 싶으시다면 아래 공식 문서를 참고해주세요

https://docs.tuist.io/documentation/tuist/installation/

brew link tuist@3.20.0

brew link tuist@3.20.0



매거진의 이전글 Tuist를 사용하며 발생한 오류 해결
브런치는 최신 브라우저에 최적화 되어있습니다. IE chrome safari