安装 Tuist
安装 Tuist {#install-tuist}
Section titled “安装 Tuist {#install-tuist}”Tuist 可以在 macOS 和 Linux 上运行。虽然您可以从源代码手动构建 Tuist,但我们建议使用以下安装方法之一来确保正确安装。
Mise {#recommended-mise}
Section titled “Mise {#recommended-mise}”::: info
如果您还没有安装 Mise,请先按照入门指南进行操作。对于需要在不同环境中确保工具版本确定性的团队或组织,Mise 是 Homebrew 的推荐替代方案。
:::
与 Homebrew 等在全局安装和激活单一版本工具的方式不同,Mise 会固定版本,可以是全局的或限定在项目范围内。运行 mise use 来安装和激活 Tuist:
mise use tuist@latest # 在当前项目中安装并固定最新版本的 tuistmise use -g tuist@system # 使用系统的 tuist 作为全局默认版本如果您克隆的项目已经在 mise.toml 中固定了 Tuist 版本,运行 mise install 来安装它。
::: details Linux 支持
在 Linux 上,Tuist 仅通过 Mise 提供。依赖 Xcode 的命令(如 tuist generate)在 Linux 上不可用,但与平台无关的命令(如 tuist inspect bundle)可以正常工作。
:::
Homebrew(仅限 macOS){#recommended-homebrew}
Section titled “Homebrew(仅限 macOS){#recommended-homebrew}”您可以使用 Homebrew 和我们的 formulas 来安装 Tuist:
brew tap tuist/tuistbrew install --formula tuist::: tip 验证二进制文件的真实性
您可以通过运行以下命令来验证安装的二进制文件是否由我们构建,该命令会检查证书的团队是否为 U6LC622NKF:
curl -fsSL "https://docs.tuist.dev/verify.sh" | bash:::