Running
scd project run builds the project, installs it on the target device or simulator, and launches it. Log output is streamed to the terminal until the app exits or you press Ctrl-C.
Synopsis
Section titled “Synopsis”scd project run [--platform <platform>] [--device <name>] [--configuration debug|release]Android
Section titled “Android”scd project runscd builds the APK, finds a connected device or running emulator, installs it via adb install, launches the main activity, and streams logcat filtered to the app’s process until the process exits.
To target a specific emulator by name:
scd project run --device "Pixel_8_API_35"If no --device is specified, scd uses the single connected device. Pass an AVD name to start a specific emulator. See Selecting an Android Device for details.
iOS Simulator
Section titled “iOS Simulator”scd project run --platform iphonesimulatorBuilds the app, boots the target simulator if it is not already running, installs via simctl install, and launches with simctl launch --console-pty so stdout is streamed to the terminal.
To target a specific simulator:
scd project run --platform iphonesimulator --device "iPhone 16"If --device is omitted, scd picks the first booted simulator, or boots the first available one.
scd project run --platform macosBuilds the app and runs the binary inside the .app bundle directly (Apple/build/Build/Products/Debug/<Name>.app/Contents/MacOS/<Name>). The process runs in the foreground and stdout is streamed to the terminal.
Release builds
Section titled “Release builds”scd project run --platform macos --configuration releaseBuilds and runs the release configuration. Works for all platforms.
Examples
Section titled “Examples”scd project run # Android, debugscd project run --configuration release # Android, releasescd project run --platform iphonesimulator # iOS Simulator, first availablescd project run --platform iphonesimulator --device "iPhone 16"scd project run --platform macosscd project run --platform macos --configuration release