clean_ws
Clean build products for a specific Xcode workspace using xcodebuild. Specify workspace path; optionally include scheme, configuration, or derived data path to remove unnecessary artifacts.
Instructions
Cleans build products for a specific workspace using xcodebuild. IMPORTANT: Requires workspacePath. Scheme/Configuration are optional. Example: clean_ws({ workspacePath: '/path/to/MyProject.xcworkspace', scheme: 'MyScheme' })
Input Schema
Name | Required | Description | Default |
---|---|---|---|
configuration | No | Optional: Build configuration to clean (Debug, Release, etc.) | |
derivedDataPath | No | Optional: Path where derived data might be located | |
extraArgs | No | Additional xcodebuild arguments | |
scheme | No | Optional: The scheme to clean | |
workspacePath | Yes | Path to the .xcworkspace file (Required) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"configuration": {
"description": "Optional: Build configuration to clean (Debug, Release, etc.)",
"type": "string"
},
"derivedDataPath": {
"description": "Optional: Path where derived data might be located",
"type": "string"
},
"extraArgs": {
"description": "Additional xcodebuild arguments",
"items": {
"type": "string"
},
"type": "array"
},
"scheme": {
"description": "Optional: The scheme to clean",
"type": "string"
},
"workspacePath": {
"description": "Path to the .xcworkspace file (Required)",
"type": "string"
}
},
"required": [
"workspacePath"
],
"type": "object"
}