[Tuist] mise 설치 및 버전 관리

Mise 

mise는 개발 환경 관리를 위한 툴로 여러 프로그래밍 언어와 도구의 버전 관리를 깔끔하게 할 수 있습니다. Tuist 를 설치하려면 homebrew 로 직접 설치가 가능하지만 mise 로 설치하는 것을 권장하고 있습니다. 계속 Tuist 의 버전이 바뀌기도 하고 관리 차원에서 mise 를 사용하면 수월하게 버전 컨트롤이 가능합니다. node 기반의 nvm 과 같은 것도 관리할 수 있으니 편리할 것 같습니다.

 

mise 로 설치한 Tuist


 

 

 

Tuist 관련 설치

 1.  homebrew 를 설치하지 않았다면 우선 terminal 에서 다음 코드를 입력해 homebrew 를 설치합니다. 

https://brew.sh/

 

Homebrew

The Missing Package Manager for macOS (or Linux).

brew.sh

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
view raw blog1.bash hosted with ❤ by GitHub

 

 

 

 2.  homebrew 를 설치할 수 있다면 homebrew 를 업데이트 한후에 mise 를 설치합니다. mise는 개발환경을 관리하는 도구로 다양한 툴의 버전 관리를 쉽게 할 수 있도록 돕는 매니저입니다. (Rust 기반)

$ brew install mise
view raw blog2.bash hosted with ❤ by GitHub

 

 

 

 3.  mise 를 통해 tuist 를 설치합니다.

$ mise install tuist
view raw blog3.bash hosted with ❤ by GitHub

 

 

 

PATH 추가

 1.  설치 목록을 확인하기 위해서 터미널에서 list 명령을 사용합니다. tuist 가 설치되어 있다면 다음과 같이 나옵니다. 현재 저는 4.43.2 버전이 설치되어 있네요.

$ mise list
Tool Version Source Requested
tuist 4.43.2 ~/.config/mise/config.toml latest
view raw blog4.bash hosted with ❤ by GitHub

mise list




 

 

 2.  설치 경로 확인을 위해서 다음 명령을 사용합니다. 

$ mise which tuist
[사용자]/.local/share/mise/installs/tuist/4.43.2/bin/tuist
view raw blog5.bash hosted with ❤ by GitHub

 

 

 

 3.  .zshrc 에 PATH 를 추가합니다.

export PATH="[사용자]/.local/share/mise/installs/tuist/4.43.2/bin:$PATH"
view raw blog6.bash hosted with ❤ by GitHub

 

 

버전 확인 및 관리

 1.  tuist 버전확인

hdb:~/ $ tuist version
4.43.2
view raw blog7.bash hosted with ❤ by GitHub

 

 

 

 2.  새로운 버전으로 tuist 설치하거나 추가할 때 사용합니다. 그밖에 uninstall 과 같은 명령을 사용해 제거도 가능합니다.

$ mise install tuist # Install the current version specified
$ mise install tuist@x.y.z # Install a specific version number
$ mise install tuist@3 # Install a fuzzy version number
view raw blog8.bash hosted with ❤ by GitHub

 

 

 

 3.  Tuist 버전 관리를 위해 use 명령을 쓰고 -g 옵션으로 글로벌 설정을 할 수 있습니다.

$ mise use tuist@x.y.z # Use tuist-x.y.z in the current project
$ mise use tuist@latest # Use the latest tuist in the current directory
$ mise use -g tuist@x.y.z # Use tuist-x.y.z as the global default
$ mise use -g tuist@system # Use the system's tuist as the global default
view raw blog9.bash hosted with ❤ by GitHub

 

 

 

'오픈소스 > Tuist' 카테고리의 다른 글

[Tuist] Xcode Development Team ID 기본값 설정하기  (0) 2024.11.25

Designed by JB FACTORY