安裝 Tuist{#install-tuist}
Tuist CLI 由一個可執行檔,動態框架和一套資源(例如模板)組成。雖然您可以從 原始碼手動建立 Tuist,,但我們建議您使用下列其中一種安裝方法,以確保安裝有效。
Mise{#recommended-mise}#
Note
如果您的團隊或組織需要確保工具在不同環境下的版本是確定的,Mise 是 Homebrew 的建議替代方案。
您可以透過下列任何一種指令安裝 Tuist:
bash
mise install tuist # Install the current version specified in .tool-versions/.mise.toml
mise install tuist@3 # Install a fuzzy version number
請注意,不像 Homebrew 之類的工具,會在全局安裝並啟用單一版本的工具,Mise 需要啟用
的版本,可以是全局版本,也可以是專案範圍內的版本。執行mise use 即可:
bash
mise use tuist@latest # Use the latest tuist in the current directory
mise use -g tuist@system # Use the system's tuist as the global default
Homebrew#
您可以使用 Homebrew 和 我們的公式 安裝 Tuist:
bash
brew tap tuist/tuist
brew install --formula tuist
Verifying The Authenticity Of The Binaries
您可以執行下列指令來驗證您安裝的二進位檔案是否已由我們建立,該指令會檢查證書的團隊是否為U6LC622NKF :
bash
curl -fsSL "https://docs.tuist.dev/verify.sh" | bash