Overview
Thetuist build command provides a set of commands to build your Tuist projects. It generates the Xcode workspace if needed and builds the specified scheme or all buildable schemes.
Usage
Options
The path to the directory that contains the project to be built.
Short form of
--path.Force the generation of the project before building.
Clean the project before building it.
The configuration to be used when building the scheme (e.g., Debug, Release).
Short form of
--configuration.Build on a specific device.
Short form of
--device.Build for a specific platform (iOS, macOS, tvOS, visionOS, watchOS).
Build with a specific version of the OS.
Short form of
--os.Append arch=x86_64 to the destination to run the simulator in Rosetta mode.
The directory where build products will be copied to when the project is built.
Generate the project and skip building. Useful for debugging purposes.
Ignore binary cache and use sources only.
Arguments
The scheme to be built. By default, it builds all the buildable schemes of the project in the current directory.
Arguments after
-- are passed through to xcodebuild. Example: tuist build -- -destination 'platform=iOS Simulator,name=iPhone 15' -sdk iphonesimulatorExamples
Build default schemes
Build specific scheme
MyApp scheme.
Build with generation
MyApp scheme.
Clean build
MyApp scheme.
Build for specific device
MyApp for the iPhone 15 Pro simulator.
Build with configuration
MyApp using the Release configuration.
Build with Rosetta
MyApp in Rosetta mode for Intel architecture on Apple Silicon Macs.
Pass arguments to xcodebuild
MyApp and passes additional arguments to xcodebuild.
Subcommands
tuist build list
List previous build runs and their status.
tuist build show
Show details about a specific build run.
Binary caching
By default,tuist build uses binary cache to speed up build times. Use --no-binary-cache to disable caching and build from sources only.