安裝 Tuist
Tuist 命令列介面可在 macOS 與 Linux 上執行,並將你的 Xcode、產生式專案、Gradle、Bazel 與 Rust 專案連線至 Tuist 的快取、洞察與執行器基礎設施。雖然你可以從原始碼建置 Tuist,但我們建議使用下列其中一種安裝方式,以確保安裝有效且可驗證。Elixir 專案則改用 tuist_ex Hex 套件,不需要 CLI。
Mise#
與 Homebrew 等會在全域安裝並啟用單一版本的工具不同,Mise 會鎖定版本,可設為全域或限定於專案範圍。執行 mise use 以安裝並啟用 Tuist:
bash
mise use tuist@latest # Install and pin the latest tuist in the current project
mise use -g tuist@system # Use the system's tuist as the global default
若你複製的專案已在 mise.toml 中鎖定 Tuist 版本,請執行 mise install 進行安裝。
Tip
tuist@latest 會解析為最新的穩定版本。Tuist 也會發布預釋出的 Canary 與候選版本;這些版本需手動選擇加入,且絕不會被 latest 解析。請參閱發布管道,了解如何鎖定你可信賴的穩定分支,以及如何選擇加入預釋出版本。
Linux 支援
在 Linux 上,Tuist 僅可透過 Mise 取得。依賴 Xcode 的命令(例如 tuist generate)在 Linux 上無法使用,但與平台無關的命令(如 tuist inspect bundle)則可正常運作。
Homebrew(僅限 macOS)#
你可以使用 Homebrew 與我們的 formula來安裝 Tuist:
bash
brew tap tuist/tuist
brew install --formula tuist
驗證二進位檔的真偽
curl -fsSL "https://tuist.dev/verify.sh" | bash
你可以執行以下指令,檢查憑證的團隊識別碼是否為 U6LC622NKF,以驗證安裝的二進位檔由我們建置:
bash
curl -fsSL "https://tuist.dev/verify.sh" | bash
HTTP 代理#
若你的網路將出站流量透過 HTTP 代理路由,請參閱HTTP 代理指南。
下一步#
- 依照入門指南將你的專案連線至 Tuist。
- 探索Tuist 為工程團隊與編碼代理提供的建置基礎設施,以更全面了解產品脈絡。