macos-xcode

Installation
SKILL.md

macos-xcode

Purpose

This skill equips the AI to handle Xcode-related tasks on macOS, focusing on building, testing, and deploying iOS/macOS applications using command-line tools. It covers core functionalities like code signing, simulator management, and profiling to automate development workflows.

When to Use

Use this skill for tasks involving iOS app compilation, simulator testing, or provisioning profile management. Apply it in CI/CD pipelines for macOS builds, when debugging with Instruments, or for automating xcodebuild processes. Avoid it for non-Apple platforms or GUI-only Xcode interactions.

Key Capabilities

  • Execute xcodebuild commands for building, archiving, and testing projects.
  • Manage simulators via xcrun simctl, including booting devices and installing apps.
  • Handle code signing with security commands, provisioning profiles, and certificates.
  • Profile applications using Instruments for performance analysis.
  • Query Xcode installations with xcrun to locate tools and SDKs.
  • Automate workflows for iOS/macOS apps, including scheme selection and configuration management.
  • Integrate with macOS keychain for secure handling of signing identities.

Usage Patterns

Always run commands in a macOS environment with Xcode installed. Prefix xcodebuild/xcrun calls with checks for Xcode availability, e.g., verify $xcode-select -p outputs a valid path. Use in AI responses by generating bash scripts that wrap these commands, ensuring error redirection (e.g., > output.log 2>&1). For automation, embed in Python scripts via subprocess: import subprocess and call subprocess.run(['xcodebuild', '-list']). Handle paths dynamically, using environment variables like $DEVELOPER_DIR to point to Xcode installations.

Related skills
Installs
22
GitHub Stars
5
First Seen
Mar 7, 2026