macos-xcode
Xcode: CLI tools, simulators, signing, provisioning profiles, xcrun, xcodebuild, Instruments
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o macos-xcode.zip https://jpskill.com/download/22249.zip && unzip -o macos-xcode.zip && rm macos-xcode.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/22249.zip -OutFile "$d\macos-xcode.zip"; Expand-Archive "$d\macos-xcode.zip" -DestinationPath $d -Force; ri "$d\macos-xcode.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
macos-xcode.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
macos-xcodeフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Claude が読む原文 SKILL.md(中身を展開)
この本文は AI(Claude)が読むための原文(英語または中国語)です。日本語訳は順次追加中。
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.
Common Commands/API
- Build a project:
xcodebuild -project MyApp.xcodeproj -scheme MyScheme -configuration Release build - List schemes:
xcodebuild -list(use output to parse available schemes in scripts). - Boot simulator:
xcrun simctl boot "iPhone 15"; followed byxcrun simctl install booted MyApp.ipa - Code signing:
xcodebuild -exportArchive -archivePath MyApp.xcarchive -exportPath output.ipa -exportOptionsPlist ExportOptions.plist(create ExportOptions.plist with {"method": "app-store"}). - Run Instruments:
instruments -w "iPhone 15" -t Time Profiler MyApp - Query tools:
xcrun --find xcodebuildto get the path; use in code:path = subprocess.check_output(['xcrun', '--find', 'xcodebuild']).decode().strip() - Provisioning profiles: Use
security find-identity -v -p codesigningto list certificates, then specify in xcodebuild via-signingIdentity "iPhone Developer: Name (ID)".
Integration Notes
Integrate by setting up environment variables for sensitive data, e.g., use $XCODE_SIGNING_IDENTITY for code signing identities. For CI/CD, ensure Xcode is installed via xcode-select --install and set $DEVELOPER_DIR=/Applications/Xcode.app. When combining with other skills, pipe outputs (e.g., from macos-core for file ops). For API-like interactions, wrap xcrun/xcodebuild in RESTful services, but use env vars like $APPLE_DEVELOPER_KEY if accessing Apple services. Always check for Xcode version compatibility, e.g., require >=14.0 for certain simctl features.
Error Handling
Check for common errors like "Code Sign error: No matching provisioning profile found" by verifying profiles with security cms -D -i profile.mobileprovision; fix by running xcodebuild -fixit or updating ExportOptions.plist. For simulator issues (e.g., "Device not booted"), use xcrun simctl list devices to check status and boot via script: if device not booted, run xcrun simctl boot <udid>. Handle xcodebuild failures by parsing exit codes (e.g., code 65 for build errors) and log outputs. Use try-except in scripts: try: subprocess.run([...]) except subprocess.CalledProcessError as e: print(e.output). Always include --verbose flag for detailed logs.
Concrete Usage Examples
Example 1: Build and Archive an iOS App
To build and archive a project, first ensure Xcode is selected: xcode-select -s /Applications/Xcode.app. Then run:
xcodebuild -workspace MyApp.xcworkspace -scheme MyScheme -configuration Release archive -archivePath build/MyApp.xcarchive
xcodebuild -exportArchive -archivePath build/MyApp.xcarchive -exportPath output -exportOptionsPlist options.plist
This outputs an IPA file; use in AI responses to automate app packaging for testing.
Example 2: Launch Simulator and Install App
To test on a simulator, boot a device and install an app:
xcrun simctl boot "iPhone 15"
xcrun simctl install booted MyApp.ipa
xcrun simctl launch booted com.example.MyApp
Monitor via xcrun simctl status booted; integrate this into AI workflows for automated UI testing.
Graph Relationships
- Connected to: macos (cluster), due to shared macOS dependencies.
- Related to: ios (tag), for overlapping iOS build processes.
- Links with: build (tag), for integration with other build tools.
- Associated with: signing (tag), for certificate management in related skills.
- Overlaps with: xcode (tag), as a core component in macOS development ecosystems.