跳转到内容

安装 Tuist

Tuist 可以在 macOSLinux 上运行。虽然您可以从源代码手动构建 Tuist,但我们建议使用以下安装方法之一来确保正确安装。

与 Homebrew 等在全局安装和激活单一版本工具的方式不同,Mise 会固定版本,可以是全局的或限定在项目范围内。运行 mise use 来安装和激活 Tuist:

Terminal window
mise use [email protected] # 在当前项目中安装并固定 tuist-x.y.z
mise use tuist@latest # 在当前项目中安装并固定最新版本的 tuist
mise use -g [email protected] # 安装并固定 tuist-x.y.z 作为全局默认版本
mise use -g tuist@system # 使用系统的 tuist 作为全局默认版本

如果您克隆的项目已经在 mise.toml 中固定了 Tuist 版本,运行 mise install 来安装它。

您可以使用 Homebrew我们的 formulas 来安装 Tuist:

Terminal window
brew tap tuist/tuist
brew install --formula tuist
brew install --formula [email protected]