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
string
default:"."
The path to the directory that contains the project to be built.
string
Short form of
--path.boolean
default:"false"
Force the generation of the project before building.
boolean
default:"false"
Clean the project before building it.
string
The configuration to be used when building the scheme (e.g., Debug, Release).
string
Short form of
--configuration.string
Build on a specific device.
string
Short form of
--device.string
Build for a specific platform (iOS, macOS, tvOS, visionOS, watchOS).
string
Build with a specific version of the OS.
string
Short form of
--os.boolean
default:"false"
Append arch=x86_64 to the destination to run the simulator in Rosetta mode.
string
The directory where build products will be copied to when the project is built.
boolean
default:"false"
Generate the project and skip building. Useful for debugging purposes.
boolean
default:"false"
Ignore binary cache and use sources only.
Arguments
string
The scheme to be built. By default, it builds all the buildable schemes of the project in the current directory.
string[]
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.