List Available SDKs
xcodebuild-showsdksList available Apple platform SDKs from your Xcode installation as structured JSON to verify SDK availability before builds and validate CI/CD environments.
Instructions
xcodebuild-showsdks
⚡ Show available SDKs for iOS, macOS, watchOS, and tvOS
What it does
Lists all SDKs available in your Xcode installation for building apps across Apple platforms. Returns structured JSON data instead of raw CLI text, making it easy to parse and validate SDK availability. Smart caching prevents redundant SDK queries, improving performance for repeated lookups. Validates Xcode installation before execution.
Why you'd use it
Verify SDK availability before starting builds (prevent build failures)
Discover which platform versions are supported by your Xcode installation
Validate CI/CD environment has required SDKs installed
Get structured SDK data for automated build configuration
Parameters
Optional
outputFormat (string, default: 'json'): "json" or "text" output format
Returns
Structured JSON containing all available SDKs organized by platform (iOS, macOS, watchOS, tvOS). Each SDK entry includes platform name, version, and SDK identifier. Smart caching reduces query overhead for repeated lookups.
Examples
Get available SDKs as JSON
const sdks = await xcodebuildShowSDKsTool({ outputFormat: "json" });Get raw text output
const sdksText = await xcodebuildShowSDKsTool({ outputFormat: "text" });Related Tools
xcodebuild-version: Get Xcode version information
xcodebuild-build: Build with specific SDK
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outputFormat | No | json |