session_set_defaults
Set default parameters for iOS build and simulator tools, applying to the active profile or a specified profile that becomes active.
Instructions
[XcodeBuildMCP] Set session defaults for the active profile, or for a specified profile and make it active.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Default environment variables to pass to launched apps. | |
| arch | No | ||
| scheme | No | ||
| persist | No | Persist provided defaults to .xcodebuildmcp/config.yaml | |
| profile | No | Set defaults for this named profile and make it active for the current session. | |
| bundleId | No | Default bundle ID for launch/stop/log tools when working on a single app. | |
| deviceId | No | ||
| platform | No | Default device platform for device tools (e.g. iOS, watchOS). | |
| extraArgs | No | Default extra xcodebuild arguments for tools that accept extraArgs. | |
| projectPath | No | xcodeproj path (xor workspacePath) | |
| simulatorId | No | Machine-local simulator UDID, materialized from simulatorName when one is set; UDIDs are not portable across machines. | |
| useLatestOS | No | ||
| configuration | No | Build configuration for Xcode and SwiftPM tools (e.g. 'Debug' or 'Release'). | |
| simulatorName | No | Canonical, machine-portable simulator selector (safe to share via SCM); the background refresh re-resolves it to this machine’s UDID. | |
| workspacePath | No | xcworkspace path (xor projectPath) | |
| derivedDataPath | No | Default DerivedData path for Xcode build/test/clean tools. | |
| preferXcodebuild | No | Prefer xcodebuild over incremental builds for Xcode build/test/clean tools. | |
| suppressWarnings | No | ||
| createIfNotExists | No | Create the named profile if it does not exist. Defaults to false. | |
| simulatorPlatform | No | Cached platform derived from the selected simulator’s runtime; must be cleared/recomputed whenever the simulator selector changes. |