Community程式設計與開發github.com

rudrankriyam/asc-notarization

使用 xcodebuild 和 asc 歸檔、匯出及公證 macOS 應用程式。當您需要準備以 Developer ID 簽署並經過 Apple 公證的 macOS 應用程式,以進行 App Store 以外的發佈時使用。

asc-notarization 是什麼?

這個技能旨在自動化 macOS 應用程式在 App Store 以外的發佈準備流程,特別是在需要 Developer ID 簽署與 Apple 公證的情況下。它整合了 xcodebuild(用於建置和歸檔)以及 asc(Apple 服務器憑證工具)以執行簽署、歸檔、匯出和公證等步驟。開發者或 AI 代理(如 Claude Code、Cursor 或 Codex)可以透過此技能簡化一系列繁瑣的命令列操作,確保應用程式符合 macOS 的安全要求。該技能支援基於 Xcode 專案的標準工作流程,並能處理常見的錯誤,例如憑證問題或公證失敗。使用此技能可以大幅減少手動設定和錯誤排查的時間,提升開發效率。

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

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

asc-notarization 是做什麼的?

使用 xcodebuild 和 asc 歸檔、匯出及公證 macOS 應用程式。當您需要準備以 Developer ID 簽署並經過 Apple 公證的 macOS 應用程式,以進行 App Store 以外的發佈時使用。

概述

此技能自動化了使用 xcodebuild 和 asc (Application Loader) 來建立、簽署和公證 macOS 應用程式的流程。它確保您的應用程式符合 Apple 的安全要求,可供分發。

必要條件

  • 有效的 Apple Developer 帳戶
  • 已安裝 Xcode 和命令列工具
  • 已設定的 Developer ID 憑證
  • 應用程式的 App Store Connect API 金鑰或應用程式專用密碼

使用方式

  1. 歸檔:使用 xcodebuild archive 指令建立應用程式的歸檔。
  2. 匯出:使用 xcodebuild -exportArchive 匯出歸檔,並指定 Developer ID 簽署。
  3. 公證:使用 xcrun altool --notarize-app 或 asc notarytool submit 提交應用程式進行公證。
  4. 確認:檢查公證狀態,並在完成後為應用程式添加公證章。

範例指令

# 歸檔
xcodebuild archive -scheme MyApp -archivePath MyApp.xcarchive

# 匯出
xcodebuild -exportArchive -archivePath MyApp.xcarchive -exportPath MyApp-export -exportOptionsPlist exportOptions.plist

# 公證 (使用 notarytool)
xcrun notarytool submit MyApp-export/MyApp.pkg --apple-id "your-apple-id" --team-id "your-team-id" --password "app-specific-password" --wait

# 加章
xcrun stapler staple MyApp-export/MyApp.pkg

除錯

  • 如果公證失敗,請檢查應用程式的權限和功能設定。
  • 確認 Developer ID 憑證已正確安裝在鑰匙圈中。
  • 確保匯出選項 plist 包含 distributionBundleIdentifier 等必要資訊。

相關資源

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-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.

rudrankriyam/asc-xcode-build

Build, archive, export, upload, and manage Xcode version/build numbers with the current asc xcode helpers before App Store Connect upload or submission. Use when creating an IPA or PKG for upload.

相關技能