Build & Run (Workflow)
workflow-build-and-runBuild, install, and launch an Xcode app on a simulator in one workflow, with optional screenshot capture.
Instructions
workflow-build-and-run
Build and run an Xcode project on a simulator in a single orchestrated workflow.
Overview
Combines build, simulator selection, installation, and launch into one call:
Build - Compile the Xcode project with xcodebuild
Select Simulator - Auto-detect or use specified device
Boot - Start the simulator
Install - Install the built .app bundle
Launch - Launch the app
Screenshot (optional) - Capture initial app state
Parameters
Required
projectPath (string): Path to .xcodeproj or .xcworkspace
scheme (string): Build scheme name
Optional
configuration (string): Build configuration (default: "Debug")
simulatorUdid (string): Target simulator UDID - auto-detected if omitted
launchArguments (string[]): App launch arguments
environmentVariables (Record<string, string>): App environment variables
takeScreenshot (boolean): Capture screenshot after launch (default: false)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scheme | Yes | Build scheme name | |
| projectPath | Yes | Path to .xcodeproj or .xcworkspace | |
| configuration | No | Build configuration (default: "Debug") | |
| simulatorUdid | No | Target simulator UDID - auto-detected if omitted | |
| takeScreenshot | No | Capture screenshot after launch | |
| launchArguments | No | App launch arguments | |
| environmentVariables | No | App environment variables |