Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计通过

building-apple-platform-productsbuilding Apple platform products 搜索

Agent Skill

building-apple-platform-products 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

494

周安装

20

GitHub Stars

56

下载量

155
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:building-apple-platform-products(building Apple platform products 搜索)
来源仓库:https://github.com/kylehughes/apple-platform-build-tools-claude-code-plugin
仓库路径:skills/building-apple-platform-products
安装命令:
npx skills add https://github.com/kylehughes/apple-platform-build-tools-claude-code-plugin --skill building-apple-platform-products
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/kylehughes/apple-platform-build-tools-claude-code-plugin --skill building-apple-platform-products

简介

building-apple-platform-products 自动化 Swift 包与 Xcode 项目的构建测试部署流程。

  • 支持 iOS/macOS/tvOS/watchOS/visionOS 多平台编译与真机调试。
  • 集成模拟器管理、代码签名与公证分发等完整发布链路工具链。
  • 可提取项目结构信息如 schemes 与 targets,便于脚本化批量处理。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Building Apple Platform Products

Build, test, archive, deploy, and automate Swift packages and Xcode projects for Apple platforms.

When to Use This Skill

Use this skill when you need to:

  • Build an iOS, macOS, tvOS, watchOS, or visionOS app
  • Build a Swift package
  • Run unit tests or UI tests
  • Create an archive for distribution
  • Discover project structure (schemes, targets, configurations)
  • Manage simulators (create, boot, configure, install apps)
  • Deploy to physical devices
  • Automate simulator testing (permissions, push notifications, screenshots, location)
  • Sign, notarize, or distribute apps
  • Inspect binaries or debug symbols
  • Profile app performance
  • Resolve xcrun tool paths or switch Xcode versions

xcrun Tool Resolution

xcrun resolves and executes Xcode developer tools without hardcoded paths. All tools in this skill are accessed through xcrun (e.g., xcrun simctl, xcrun devicectl, xcrun xctrace).

GoalCommand
Find tool pathxcrun --find <tool>
Show SDK pathxcrun --sdk iphoneos --show-sdk-path
Switch Xcode (per-command)DEVELOPER_DIR=/path/to/Xcode.app/Contents/Developer xcrun <tool>
Switch Xcode (system)sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
Clear cache after upgradexcrun --kill-cache

For tool resolution priority, toolchain selection, or debugging, see xcrun-basics.md.

Tool Selection

Project TypePrimary ToolWhen to Use
Standalone Package.swiftswift buildLibraries, CLI tools, cross-platform Swift (no.xcodeproj)
.xcworkspacexcodebuild -workspaceCocoaPods or multi-project setups
.xcodeprojxcodebuildStandard Xcode projects (including those with SPM dependencies)

Important: The swift build / swift test commands only work for standalone Swift packages. If a Swift package is embedded as a submodule within an Xcode project, you must use xcodebuild with the appropriate scheme—the Swift CLI cannot orchestrate builds in that context.

Project Discovery

Before building, discover the project structure:

# Find what project files exist
ls Package.swift *.xcworkspace *.xcodeproj 2>/dev/null

# List schemes and targets (auto-detects project)
xcodebuild -list

# Describe package (standalone SPM only)
swift package describe

Note: When an Xcode project references a local Swift package, each package target gets its own scheme (named after the target, not the package). Use these schemes to build individual targets without building the entire app.

For mixed projects, shared schemes, or detailed output parsing, see project-discovery.md.

Swift Package Manager Commands

Important: These commands only work for standalone Swift packages, not Swift Package Manager submodules in Xcode projects.

GoalCommand
Build (debug)swift build
Build (release)swift build -c release
Run executableswift run [<target>]
Run testsswift test
Run specific testswift test --filter <TestClass.testMethod>
Show binary pathswift build --show-bin-path
Cleanswift package clean
Initialize`swift package init [--type library\executable]`

For cross-compilation, Package.swift syntax, or dependency management, see swift-package-manager.md.

xcodebuild Commands

Command structure: xcodebuild [action] -scheme <name> [-workspace|-project] [options] [BUILD_SETTING=value]

GoalCommand
List schemesxcodebuild -list
Buildxcodebuild build -scheme <name>
Testxcodebuild test -scheme <name> -destination '<spec>'
Build for testingxcodebuild build-for-testing -scheme <name> -destination '<spec>'
Test without buildxcodebuild test-without-building -scheme <name> -destination '<spec>'
Archivexcodebuild archive -scheme <name> -archivePath <path>.xcarchive
Cleanxcodebuild clean -scheme <name>

Required: -scheme is always required. Add -workspace or -project when multiple exist. For tests: -destination is required for iOS/tvOS/watchOS/visionOS targets.

For build settings, SDK selection, or CI configuration, see xcodebuild-basics.md.

Common Destinations

PlatformDestination Specifier
macOS'platform=macOS'
iOS Simulator'platform=iOS Simulator,name=iPhone 17'
iOS Device'platform=iOS,id=<UDID>'
tvOS Simulator'platform=tvOS Simulator,name=Apple TV'
watchOS Simulator'platform=watchOS Simulator,name=Apple Watch Series 11 (46mm)'
visionOS Simulator'platform=visionOS Simulator,name=Apple Vision Pro'
Generic (build only)'generic/platform=iOS'

Note: Simulator names change with each Xcode release. Always verify available simulators:

xcrun simctl list devices available

For all platforms, multiple destinations, or troubleshooting destination errors, see destinations.md.

Simulator Management (simctl)

xcrun simctl manages the full simulator lifecycle and enables test automation without launching Xcode.

GoalCommand
List available simulatorsxcrun simctl list devices available
Create simulatorxcrun simctl create "<name>" "<type>" "<runtime>"
Boot / shutdownxcrun simctl boot <UDID> / xcrun simctl shutdown <UDID>
Install appxcrun simctl install booted <path.app>
Launch appxcrun simctl launch booted <bundle-id>
Grant permissionsxcrun simctl privacy booted grant all <bundle-id>
Push notificationxcrun simctl push booted <bundle-id> <file.apns>
Set appearancexcrun simctl ui booted appearance dark
Override status barxcrun simctl status_bar booted override --time "9:41"
Open URL / deep linkxcrun simctl openurl booted "<url>"
Take screenshotxcrun simctl io booted screenshot <file.png>
Record videoxcrun simctl io booted recordVideo <file.mov>
Set locationxcrun simctl location booted set <lat>,<lon>
Stream logsxcrun simctl spawn booted log stream --predicate '...'
Download runtimexcodebuild -downloadPlatform iOS

For app lifecycle, environment variables, privacy services, media, diagnostics, and runtime management, see simctl.md.

Physical Device Deployment (devicectl)

xcrun devicectl manages physical devices running iOS 17+. Introduced in Xcode 15.

GoalCommand
List devicesxcrun devicectl list devices
List devices (JSON)xcrun devicectl list devices --json-output /tmp/devices.json
Install appxcrun devicectl device install app --device <ID> <path>
Launch appxcrun devicectl device process launch --device <ID> <bundle-id>
Copy file from devicexcrun devicectl device copy from --device <ID>...
List installed appsxcrun devicectl device info apps --device <ID>

Important: Requires iOS 17+, Developer Mode enabled, and valid code signing. JSON output is the only stable scripting interface.

For file transfer, process management, device pairing, limitations, and troubleshooting, see devicectl.md.

Code Signing

GoalCommand
List signing identitiessecurity find-identity -v -p codesigning
Disable signing (build)CODE_SIGNING_ALLOWED=NO
Auto provisioning-allowProvisioningUpdates
Verify signaturecodesign --verify --verbose=4 MyApp.app

For CI keychain setup, manual vs automatic signing, and build settings, see code-signing.md.

Reference Files

TopicFileWhen to Read
xcrun Basicsxcrun-basics.mdTool resolution, Xcode switching, SDK paths
Project Discoveryproject-discovery.mdMixed projects, shared schemes
Swift Package Managerswift-package-manager.mdCross-compilation, Package.swift syntax
xcodebuild Basicsxcodebuild-basics.mdBuild settings, SDK selection
Destinationsdestinations.mdAll platforms, multiple destinations
Testingtesting.mdTest filtering, parallel execution, coverage
Archivingarchiving.mdArchive creation
Simulator Managementsimctl.mdDevice lifecycle, app management, automation
Physical Devicesdevicectl.mdiOS 17+ device deployment
Code Signingcode-signing.mdCertificates, provisioning, CI keychain
Profiling & Resultsprofiling-and-results.mdxctrace, xcresulttool, coverage
Distributiondistribution.mdIPA export, notarization, App Store upload
Binary Toolsbinary-tools.mdlipo, otool, dsymutil, atos, plutil, docc
CI/CD Patternsci-cd-patterns.mdComplete pipelines, GitHub Actions, log capture
Troubleshootingtroubleshooting.mdError index across all topics

Common Pitfalls

  1. swift build with Xcode submodules: Only works for standalone packages. Use xcodebuild with the package's scheme instead.
  2. Missing destination for iOS: Use -destination 'generic/platform=iOS' for builds, or specify a simulator for tests.
  3. Unnecessary workspace flag: Only use -workspace for CocoaPods or multi-project setups. Standard projects with SPM dependencies just use .xcodeproj.
  4. Case-sensitive scheme names: Run xcodebuild -list to see exact scheme names.
  5. Outdated simulator names: Names change with Xcode versions. Run xcrun simctl list devices available.
  6. Code signing errors: Add CODE_SIGNING_ALLOWED=NO for builds that don't require signing.
  7. Stale xcrun cache: After Xcode upgrades, run xcrun --kill-cache.
  8. devicectl only works with iOS 17+: Older devices are invisible to devicectl.
  9. xctrace outputs to stderr: Redirect with 2>&1 when parsing xcrun xctrace list devices.
  10. JSON output for scripting: Both simctl and devicectl provide JSON output flags — always prefer structured output over parsing human-readable text.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

39%
按下载量换算60

Claude

29.76%
按下载量换算46

Cursor

19.24%
按下载量换算30

Gemini CLI

9.83%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills