Skip to main content

Overview

The tuist run command runs a preview, app specifier, or scheme from a Tuist-generated project. It provides a convenient way to launch apps without opening Xcode.

Usage

Options

string
default:"."
The path to the directory that contains the project with the target or scheme to be run.
string
Short form of --path.
string
The device name to run on (e.g., “iPhone 15 Pro”).
boolean
default:"false"
Force the generation of the project before running.
boolean
default:"false"
Clean the project before running.
string
The configuration to be used when building the scheme (e.g., Debug, Release).
string
Short form of --configuration.
string
The OS version of the simulator.
string
Short form of --os.
boolean
default:"false"
Append arch=x86_64 to the destination to run the simulator in Rosetta mode.

Arguments

string
required
One of:
  • A preview URL (e.g., https://preview.tuist.dev/...)
  • An app specifier (e.g., App@latest or App@feature-branch)
  • A scheme name from your generated project (macOS only)
string[]
Arguments to pass to the application during execution. All arguments after the runnable are forwarded to the app.

Examples

Run by scheme name (macOS)

Runs the MyApp scheme from your generated project.

Run with app specifier

Runs the latest version of App from the preview system.

Run with branch specifier

Runs the App build from the feature-branch.

Run preview URL

Runs an app from a preview link.

Run on specific device

Runs MyApp on the iPhone 15 Pro simulator.

Run with generation

Generates the workspace first, then runs MyApp.

Run with configuration

Runs MyApp using the Release configuration.

Run with app arguments

Runs MyApp and passes --verbose and --config debug to the app.

Run with specific OS version

Runs MyApp on iPhone 15 with iOS 17.0.

Run in Rosetta mode

Runs MyApp in Rosetta mode for Intel compatibility on Apple Silicon.

Runnable types

Scheme name (macOS only)

Run a scheme from your generated Tuist project:

App specifier

Run an app using an identifier and version/branch:

Preview URL

Run an app from a preview link:

App arguments

Pass arguments to your app by adding them after the runnable:
All arguments after -- are forwarded to the app’s launch arguments.

Requirements

  • For preview URLs and app specifiers: Tuist account and authentication (tuist auth)
  • For scheme names: Generated Xcode project
  • macOS with Xcode installed