asc-notarization
Agent skill fromrorkai/app-store-connect-cli-skills
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.
How to install asc-notarization
install asc-notarization
# install the app-store-connect-cli-skills pack with the skills CLI
npx skills add rorkai/app-store-connect-cli-skills# or add only this skill to Claude Code: copy the folder
skills/asc-notarization/
# into
~/.claude/skills/asc-notarization/ (all projects)
.claude/skills/asc-notarization/ (one project)
1# macOS Notarization23Use this skill when you need to notarize a macOS app for distribution outside the App Store.45## Preconditions6- Xcode installed and command line tools configured.7- Auth is configured (`asc auth login` or `ASC_*` env vars).8- A Developer ID Application certificate in the local keychain.9- The app's Xcode project builds for macOS.1011## Preflight: Verify Signing Identity1213Before archiving, confirm a valid Developer ID Application identity exists:1415```bash16security find-identity -v -p codesigning | grep "Developer ID Application"17```1819If no identity is found, create one at https://developer.apple.com/account/resources/certificates/add (the App Store Connect API does not support creating Developer ID certificates).2021### Inspect Trust Settings2223If `codesign` or `xcodebuild` fails with "Invalid trust settings" or "errSecInternalComponent", the certificate may have custom trust overrides that break the chain:2425```bash26# Check for custom trust settings27security dump-trust-settings 2>&1 | grep -A1 "Developer ID"28```2930These errors do not by themselves prove a trust override is the cause. Inspect the affected certificate before proposing a repair. Changing trust settings requires explicit authorization for that certificate; do not remove trust overrides or re-sign an arbitrary app as a diagnostic step.3132## Step 1: Archive3334```bash35xcodebuild archive \36 -scheme "YourMacScheme" \37 -configuration Release \38 -archivePath /tmp/YourApp.xcarchive \39…
Excerpt shown under the repository's MIT license.
