/XcodeBuildTools:xcode-testfrom XcodeBuildTools
Run Xcode unit tests and UI tests using xcodebuild with xcsift for token-efficient output. Use when running tests for iOS/macOS projects, filtering specific test cases, or checking test results.
Ships in XcodeBuildTools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Tool routing: Use this skill for Xcode test workflows even when raw Xcode MCP test tools are available, unless this session's XcodeBuildTools context says the project prefers the Xcode MCP. In that case use the MCP's
RunSomeTests/RunAllTestsfor plain runs and this skill for UDID destinations,TEST_RUNNER_*variables,-skip-testing,-collect-test-diagnostics, result bundle paths, and whenever the MCP is unavailable.
Run unit and UI tests with xcodebuild test and xcsift --format toon --executable.
Ensure xcsift is installed and up to date: brew install xcsift (or brew upgrade xcsift to update).
-sdk parameter - causes unnecessary build failures-skipMacroValidation -skipPackagePluginValidationxcworkspace always use the -workspace flag to compile, never -projectxcodebuild wrapper on PATH ahead of /usr/bin, so every invocation — direct or nested inside a build script — runs inside the plugin's build sandbox (kept per worktree in Claude Code). Just call xcodebuild normally.xcodebuild -workspace MyApp.xcworkspace -scheme MyAppTests -destination 'id=<simulator-uuid>' -skipMacroValidation -skipPackagePluginValidation test 2>&1 | tee ${TMPDIR:-/tmp}/test.log | xcsift --format toon --warnings --executable
xcodebuild -workspace MyApp.xcworkspace -scheme MyAppTests -destination 'platform=macOS' -skipMacroValidation -skipPackagePluginValidation test 2>&1 | tee ${TMPDIR:-/tmp}/test.log | xcsift --format toon --warnings --executable
xcodebuild -workspace MyApp.xcworkspace -scheme MyAppTests -destination 'id=<simulator-uuid>' -only-testing:MyAppTests/LoginTests/testLoginSuccess test 2>&1 | tee ${TMPDIR:-/tmp}/test.log | xcsift --format toon --warnings --executable
xcodebuild ... -skip-testing:MyAppTests/SlowTests test 2>&1 | xcsift --format toon --warnings --executable
MyAppTestsMyAppTests/LoginTestsMyAppTests/LoginTests/testLoginSuccessOutput shows test results, errors, and failures. Check ${TMPDIR:-/tmp}/test.log for details.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub gpambrozio/claudecodeplugins --plugin XcodeBuildTools11 skills in this plugin
/device-appManage apps on physical Apple devices (iPhone, iPad, Watch, TV, Vision Pro). Use when listing connected devices, installing apps on physical devices, launching or stopping apps on devices./macos-appLaunch and stop macOS applications. Use after building a macOS app to run it, or to terminate running macOS applications./sim-logCapture logs from iOS Simulator apps. Use when debugging simulator apps, monitoring app output, or capturing logs for analysis./sparkle-integrationIntegrate Sparkle 2.x auto-update framework into macOS apps. Use when adding auto-update functionality for macOS applications./swift-code-analysisUse when reviewing Swift code for architecture, memory, SwiftUI, dead code, optional handling, or code quality issues./swift-packageBuild, test, run, and manage Swift Package Manager projects. Use when working with Package.swift projects, running "swift build", "swift test", or "swift run", managing package executables, or cleaning SPM build artifacts.