list_run_destinations
List compatible devices and simulators for an Xcode project scheme. Use the returned 'id' to set the run destination.
Instructions
List available run destinations (devices and simulators) for a project scheme.
Returns destinations filtered to what's compatible with the given scheme. For example, an iOS scheme will show iOS simulators and devices but not Mac destinations (unless the app supports Mac Catalyst).
Use the 'id' field from the results with set_run_destination to change which device Xcode builds and runs for.
Args: project_path: Path to an Xcode project (.xcodeproj) or workspace (.xcworkspace). scheme: Scheme name to list destinations for. If not provided, uses the first scheme found via xcodebuild.
Returns: JSON array of destinations, each with: name, platform, id, and optionally arch, OS, and variant fields.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| scheme | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |