Overview
Thetuist generate command creates an Xcode workspace from your Project.swift and Workspace.swift manifests. It’s the core command for converting your declarative project definitions into working Xcode projects.
Usage
Options
The path to the directory or a subdirectory of the project.
Short form of
--path.Don’t open the project after generating it. By default, the generated workspace opens automatically unless running in CI.
Short form of
--no-open.Ignore binary cache and use sources only. Deprecated: Use
--cache-profile none instead.Binary cache profile to use:
simulator, device, all, none, or a custom profile name. Defaults to the profile configured in Tuist.swift, or only-external if not configured.Configuration to generate for (e.g., Debug, Release).
Short form of
--configuration.Arguments
Targets to focus on, specified by name or tag query (e.g.,
tag:feature). Other targets will be linked as binaries if possible. If no target is specified, all project targets will be generated (except external ones, such as Swift packages).Examples
Generate all targets
Generate specific targets
App and Framework targets, linking other dependencies as binaries when possible.
Generate with tag query
feature.
Generate without opening
Generate without cache
Generate for specific configuration
Subcommands
tuist generate list
List previous generation runs and their status.
tuist generate show
Show details about a specific generation run.
Binary caching
Tuist supports binary caching to speed up generation and build times. Use--cache-profile to control caching behavior:
simulator: Cache for simulator architectures onlydevice: Cache for device architectures onlyall: Cache for all architecturesnone: Disable caching- Custom profile name: Use a profile defined in your
Tuist.swift
Focused generation
Focused generation allows you to work on specific targets while keeping the rest as pre-compiled binaries. This significantly improves generation and build times for large projects.MyFeature as source code while linking dependencies as binaries from cache.