Community编程与开发github.com

rudrankriyam/asc-xcode-build

使用当前的 asc xcode 助手,在 App Store Connect 上传或提交之前构建、归档、导出、上传并管理 Xcode 版本/构建号。用于创建用于上传的 IPA 或 PKG 文件。

asc-xcode-build 是什么?

该技能为 AI 代理(如 Claude Code、Cursor、Codex)提供了在 Xcode 项目工作流中处理构建、归档、导出、上传以及管理版本号和构建号的完整能力。它通过封装 `asc` 工具和 xcodebuild 命令,简化了将应用提交到 App Store Connect 之前的准备工作。支持 IPA 和 PKG 格式的生成,并允许动态更新 Info.plist 中的版本号。适用于 macOS 和 iOS 开发环境,需要预先配置 Xcode 命令行工具和有效的 Apple ID 证书。技能文档中包含了清晰的步骤说明和示例命令,帮助开发者快速集成到 CI/CD 管道中。

兼容平台~Claude Code~Codex CLI~Cursor
Part ofMobile
npx skills add https://github.com/rudrankriyam/app-store-connect-cli-skills/tree/main/skills/asc-xcode-build

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

asc-xcode-build 是做什么的?

使用当前的 asc xcode 助手,在 App Store Connect 上传或提交之前构建、归档、导出、上传并管理 Xcode 版本/构建号。用于创建用于上传的 IPA 或 PKG 文件。

功能

  • 使用 xcodebuild 构建和归档 Xcode 项目或工作区
  • 导出归档文件为 IPA 或 PKG
  • 使用 xcrun altool 上传到 App Store Connect
  • 在构建前自动更新 Info.plist 中的版本号和构建号

要求

  • 已安装 Xcode 和命令行工具
  • 有效的 Apple 开发者账户和 App Store Connect API 密钥或 Apple ID
  • 项目或工作区已正确为归档配置好证书和描述文件

用法

# 查看帮助
asc xcode-build --help

# 构建并归档项目
asc xcode-build --project MyProject.xcodeproj --scheme MyScheme

# 构建并归档工作区
asc xcode-build --workspace MyWorkspace.xcworkspace --scheme MyScheme

# 指定输出目录
asc xcode-build --project MyProject.xcodeproj --scheme MyScheme --output-dir ./Build

# 更新版本号和构建号
asc xcode-build --project MyProject.xcodeproj --scheme MyScheme --version 1.0.1 --build-number 42

# 导出为 IPA 并上传
asc xcode-build --project MyProject.xcodeproj --scheme MyScheme --upload

配置

环境变量描述必填
APP_STORE_CONNECT_USERNAMEApp Store Connect 用户名(Apple ID)是(如果使用 Apple ID)
APP_STORE_CONNECT_PASSWORDApp Store Connect 密码或应用专用密码是(如果使用 Apple ID)
APP_STORE_CONNECT_API_KEYAPI 密钥 ID是(如果使用 API 密钥)
APP_STORE_CONNECT_API_ISSUER_IDAPI 签发者 ID是(如果使用 API 密钥)
APP_STORE_CONNECT_API_KEY_FILEAPI 密钥文件路径是(如果使用 API 密钥)

示例

1. 构建并归档

asc xcode-build --project MyApp.xcodeproj --scheme MyApp --output-dir ./Archive

2. 构建、归档并上传

asc xcode-build --workspace MyApp.xcworkspace --scheme MyApp --upload

3. 更新版本号并构建

asc xcode-build --project MyApp.xcodeproj --scheme MyApp --version 2.0.0 --build-number 100

常见问题

  • 构建失败:检查 Xcode 项目配置、证书和描述文件。运行 xcodebuild -list 验证可用的 scheme。
  • 上传失败:确保 App Store Connect 凭据或 API 密钥配置正确。检查网络连接和权限。
  • 版本号更新失败:确保 Info.plist 包含正确的 CFBundleShortVersionString 和 CFBundleVersion 键。

许可证

MIT

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

rudrankriyam/asc-app-create-ui

Create a new App Store Connect app record via browser automation. Use when there is no public API for app creation and you need an agent to drive the New App form.

rudrankriyam/asc-aso-audit

Run an offline ASO audit on canonical App Store metadata under `./metadata` and surface keyword gaps using Astro MCP. Use after pulling metadata with `asc metadata pull`.

rudrankriyam/asc-build-lifecycle

Track build processing, find latest builds, and clean up old builds with asc. Use when managing build retention or waiting on processing.

rudrankriyam/asc-cli-usage

Guidance for using asc cli in this repo (flags, output formats, pagination, auth, and discovery). Use when asked to run or design asc commands or interact with App Store Connect via the CLI.

rudrankriyam/asc-crash-triage

Triage TestFlight crashes, beta feedback, and performance diagnostics using asc. Use when the user asks about TF crashes, TestFlight crash reports, beta tester feedback, app hangs, disk writes, launch diagnostics, or wants a crash summary for a build or app.

rudrankriyam/asc-id-resolver

Resolve App Store Connect IDs (apps, builds, versions, groups, testers) from human-friendly names using asc. Use when commands require IDs.

rudrankriyam/asc-localize-metadata

Automatically translate and sync App Store metadata (description, keywords, what's new, subtitle) to multiple languages using LLM translation and asc CLI. Use when asked to localize an app's App Store listing, translate app descriptions, or add new languages to App Store Connect.

rudrankriyam/asc-metadata-sync

Sync, validate, and apply App Store metadata with the current asc canonical metadata workflow. Use when updating metadata, localizations, keywords, or migrating legacy fastlane metadata.

rudrankriyam/asc-notarization

Archive, export, and notarize macOS apps using xcodebuild and asc. Use when you need to prepare a macOS app for distribution outside the App Store with Developer ID signing and Apple notarization.

rudrankriyam/asc-ppp-pricing

Set territory-specific pricing for subscriptions and in-app purchases using current asc setup, pricing summary, price import, and price schedule commands. Use when adjusting prices by country or implementing localized PPP strategies.

rudrankriyam/asc-release-flow

Determine whether an app is ready to submit, then drive the current App Store release flow with asc, including validation, staging, review submission, first-time availability, subscriptions, IAP, Game Center, and App Privacy checks.

rudrankriyam/asc-revenuecat-catalog-sync

Reconcile App Store Connect subscriptions and in-app purchases with RevenueCat products, entitlements, offerings, and packages using asc and RevenueCat MCP. Use when setting up or syncing subscription catalogs across ASC and RevenueCat.

rudrankriyam/asc-shots-pipeline

Orchestrate iOS screenshot automation with xcodebuild/simctl for build-run, AXe for UI actions, JSON settings and plan files, Koubou-based framing (`asc screenshots frame`), and screenshot upload (`asc screenshots upload`). Use when users ask for automated screenshot capture, AXe-driven simulator flows, frame composition, or screenshot-to-upload pipelines.

rudrankriyam/asc-signing-setup

Set up bundle IDs, capabilities, signing certificates, provisioning profiles, and encrypted signing sync with the asc cli. Use when onboarding a new app, rotating signing assets, or sharing them across a team.

rudrankriyam/asc-submission-health

Validate App Store submission readiness, submit prepared versions, and monitor review status with current asc commands. Use when shipping or troubleshooting review submissions.

rudrankriyam/asc-subscription-localization

Bulk-localize subscription and in-app purchase display names across all App Store locales using asc. Use when you want to fill in subscription/IAP names for every language without clicking through App Store Connect manually.

rudrankriyam/asc-testflight-orchestration

Orchestrate TestFlight distribution, groups, testers, and What to Test notes using asc. Use when rolling out betas.

rudrankriyam/asc-wall-submit

Submit or update a Wall of Apps entry in the App-Store-Connect-CLI repository using `asc apps wall submit`. Use when the user says "submit to wall of apps", "add my app to the wall", or "wall-of-apps".

rudrankriyam/asc-whats-new-writer

Generate engaging, localized App Store release notes (What's New) from git log, bullet points, or free text using canonical metadata under `./metadata`. Optionally pairs with promotional text updates.

rudrankriyam/asc-workflow

Define, validate, run, resume, and audit repo-local multi-step automations with current `asc workflow` and `.asc/workflow.json`, including step outputs and safe release/TestFlight workflows.

相关技能