doublespeed — Xcode as an API
v0.1.1Build, test and run iOS apps on a remote Mac from any machine.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
discover_projs Discover Xcode projects
Scan a directory for .xcworkspace, .xcodeproj and Package.swift (skipping node_modules, Pods, .build, DerivedData). Local; no Mac needed.
| Parameter | Type | Description |
|---|---|---|
maxDepth | number | |
workspaceRoot | string | Directory to scan (default: cwd) |
list_schemes List schemes
List shared schemes of a project or workspace by reading xcshareddata (local). Unshared schemes are not visible; if none are listed, ds infers the scheme from the app target on the Mac.
| Parameter | Type | Description |
|---|---|---|
projectPath | string | |
workspacePath | string |
list_sims List simulators
List simulator devices, iOS runtimes and Xcode versions available on the doublespeed fleet.
check_project Check project on a Mac (no API key needed)
Lint-only check on a real Mac: resolves the project/workspace/package and schemes with xcodebuild -list, parses every Swift file with swiftc (syntax, file:line:col), lints plists. Does NOT compile. Works without DS_API_KEY (keyless trial: 10 per day per address, 25 MB snapshot). Use this to validate structure before asking the user for a key; use build_sim/test_sim for a real build.
| Parameter | Type | Description |
|---|---|---|
projectPath | string | Path to the .xcodeproj (omit for a workspace or a Swift package) |
workspacePath | string | Path to the .xcworkspace (CocoaPods / React Native projects) |
workspaceRoot | string | Directory to upload as the project root (default: the directory containing the project/workspace, or the current directory). Only files under it are sent. |
build_sim Build for iOS Simulator
Compile the project for the iOS Simulator on a Mac in the doublespeed fleet. Returns file:line:col errors. Use when there is no Xcode locally.
| Parameter | Type | Description |
|---|---|---|
collectApp | boolean | Also upload the built .app as an artifact |
configuration | string | Debug or Release (default: what the scheme defines) |
extraArgs | array | Extra `ds xcode` flags, e.g. ['--setting', 'CODE_SIGNING_ALLOWED=NO', '--timeout', '3600'] |
projectPath | string | Path to the .xcodeproj (omit for a workspace or a Swift package) |
scheme | string | Scheme to build; inferred when the project has exactly one app scheme |
simulatorName | string | Simulator device name, e.g. 'iPhone 16 Pro' (default iPhone 16) |
workspacePath | string | Path to the .xcworkspace (CocoaPods / React Native projects) |
workspaceRoot | string | Directory to upload as the project root (default: the directory containing the project/workspace, or the current directory). Only files under it are sent. |
xcodeVersion | string | Required Xcode major or exact version, e.g. '16' or '16.4' |
test_sim Run tests on iOS Simulator
Build and run XCTest / Swift Testing on an iOS Simulator on the doublespeed fleet. Returns per-test results and compile errors.
| Parameter | Type | Description |
|---|---|---|
configuration | string | Debug or Release (default: what the scheme defines) |
extraArgs | array | Extra `ds xcode` flags, e.g. ['--setting', 'CODE_SIGNING_ALLOWED=NO', '--timeout', '3600'] |
onlyTesting | array | XCTest identifiers to run, e.g. ['AppTests/CounterTests'] |
projectPath | string | Path to the .xcodeproj (omit for a workspace or a Swift package) |
scheme | string | Scheme to build; inferred when the project has exactly one app scheme |
simulatorName | string | Simulator device name, e.g. 'iPhone 16 Pro' (default iPhone 16) |
skipTesting | array | |
testPlan | string | |
workspacePath | string | Path to the .xcworkspace (CocoaPods / React Native projects) |
workspaceRoot | string | Directory to upload as the project root (default: the directory containing the project/workspace, or the current directory). Only files under it are sent. |
xcodeVersion | string | Required Xcode major or exact version, e.g. '16' or '16.4' |
build_run_sim Build and run in a live simulator
Build, install and launch the app in an iOS Simulator on the fleet and return a browser URL where a human can see and use it (tap, type, swipe). The session stays open until stop_app_sim or the idle timeout. Billed per second while open.
| Parameter | Type | Description |
|---|---|---|
configuration | string | Debug or Release (default: what the scheme defines) |
extraArgs | array | Extra `ds xcode` flags, e.g. ['--setting', 'CODE_SIGNING_ALLOWED=NO', '--timeout', '3600'] |
idleTimeoutSeconds | number | End the session after this long with no viewer activity (60–7200, default 900) |
projectPath | string | Path to the .xcodeproj (omit for a workspace or a Swift package) |
scheme | string | Scheme to build; inferred when the project has exactly one app scheme |
simulatorName | string | Simulator device name, e.g. 'iPhone 16 Pro' (default iPhone 16) |
workspacePath | string | Path to the .xcworkspace (CocoaPods / React Native projects) |
workspaceRoot | string | Directory to upload as the project root (default: the directory containing the project/workspace, or the current directory). Only files under it are sent. |
xcodeVersion | string | Required Xcode major or exact version, e.g. '16' or '16.4' |
stop_app_sim Stop a simulator session
End a live simulator session started by build_run_sim (frees the Mac; stops billing).
| Parameter | Type | Description |
|---|---|---|
jobId * | string | Job id returned by build_run_sim |
archive_app Archive (.xcarchive)
Produce an unsigned .xcarchive for the device SDK on the fleet (Release). Signing and TestFlight upload are not available yet.
| Parameter | Type | Description |
|---|---|---|
configuration | string | Debug or Release (default: what the scheme defines) |
extraArgs | array | Extra `ds xcode` flags, e.g. ['--setting', 'CODE_SIGNING_ALLOWED=NO', '--timeout', '3600'] |
projectPath | string | Path to the .xcodeproj (omit for a workspace or a Swift package) |
scheme | string | Scheme to build; inferred when the project has exactly one app scheme |
simulatorName | string | Simulator device name, e.g. 'iPhone 16 Pro' (default iPhone 16) |
workspacePath | string | Path to the .xcworkspace (CocoaPods / React Native projects) |
workspaceRoot | string | Directory to upload as the project root (default: the directory containing the project/workspace, or the current directory). Only files under it are sent. |
xcodeVersion | string | Required Xcode major or exact version, e.g. '16' or '16.4' |
job_status Job status / logs
Fetch a previous job (status, error, diagnostics, tests) and optionally its log tail.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | |
logLines | number | Return the last N log lines (default 0) |
doctor Doctor
Check that this machine can reach the doublespeed fleet: key present, API reachable, fleet capabilities, ds CLI version.