clean_proj
Remove build artifacts for specific Xcode projects using xcodebuild. Requires projectPath; supports optional scheme, configuration, derivedDataPath, and extraArgs for precise cleanup.
Instructions
Cleans build products for a specific project file using xcodebuild. IMPORTANT: Requires projectPath. Scheme/Configuration are optional. Example: clean_proj({ projectPath: '/path/to/MyProject.xcodeproj', 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 | |
projectPath | Yes | Path to the .xcodeproj file (Required) | |
scheme | No | Optional: The scheme to clean |
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"
},
"projectPath": {
"description": "Path to the .xcodeproj file (Required)",
"type": "string"
},
"scheme": {
"description": "Optional: The scheme to clean",
"type": "string"
}
},
"required": [
"projectPath"
],
"type": "object"
}