asc-notarization
Skill1.1k starsChanged 4 months agoMITView on GitHub
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.
1 other project uses a version of this, 1 of them edited.
Trending
More talk lately.thin dataabout the whole repository
Most recently taken up by
- moasq/ios-dev-agentedited, first seen May 26, 2026
Who's talking about rorkai/app-store-connect-cli-skills
- sudosubin/agents.nix“agent-skills.github.rorkai.app-store-connect-cli-skills: 0-unstable-2026-09-14 → 0-unstable-2026-10-05”GitHub · Oct 5, 2026
- sudosubin/agents.nix“claude-code-plugins.github.rorkai.app-store-connect-cli-skills: init at 0-unstable-2026-09-14”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.rorkai.app-store-connect-cli-skills: init at 0-unstable-2026-09-14”GitHub · Oct 1, 2026
- ShawnBaek/ai-workflow-apple-platform-engineer“fix(release-qa-handoff): route publication through app-store-connect and confirm tracker writes”GitHub · Sep 26, 2026
- rorkai/App-Store-Connect-CLI“fix(web): renew request deadlines after interactive authentication”GitHub · Sep 8, 2026
The biggest 5 of 7 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 7
Talked about on GitHub (7 times).
On GitHub · 7
- Oct 5, 2026agent-skills.github.rorkai.app-store-connect-cli-skills: 0-unstable-2026-09-14 → 0-unstable-2026-10-05 — sudosubin/agents.nix0 reactions
- Oct 4, 2026claude-code-plugins.github.rorkai.app-store-connect-cli-skills: init at 0-unstable-2026-09-14 — sudosubin/agents.nix0 reactions
- Oct 1, 2026agent-skills.github.rorkai.app-store-connect-cli-skills: init at 0-unstable-2026-09-14 — sudosubin/agents.nix0 reactions
- Sep 26, 2026fix(release-qa-handoff): route publication through app-store-connect and confirm tracker writes — ShawnBaek/ai-workflow-apple-platform-engineer0 reactions
- Sep 8, 2026fix(web): renew request deadlines after interactive authentication — rorkai/App-Store-Connect-CLI0 reactions
2 more on GitHub
- Jul 7, 2026Review followup: PR #26755 — GH#26753: docs: adopt app store connect skill refresh — marcusquinn/aidevops0 reactions · 2 comments
- Jul 7, 2026quality-debt: .agents/tools/mobile/app-store-connect.md — PR #26755 review feedback (medium) — marcusquinn/aidevops0 reactions · 3 comments
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- moasq/ios-dev-agent★ 481% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository24 other files it gives its agents.
- asc-ad-hoc-distributionSkill
- asc-analytics-reportsSkill
- asc-app-create-uiSkill
- asc-apple-adsSkill
- asc-aso-auditSkill
- asc-build-lifecycleSkill
- asc-cli-usageSkill
- asc-crash-triageSkill
- asc-id-resolverSkill
- asc-localize-metadataSkill
- asc-metadata-syncSkill
- asc-ppp-pricingSkill
- asc-release-flowSkill
- asc-revenuecat-catalog-syncSkill
- asc-screenshot-resizeSkill
- asc-shots-pipelineSkill
- asc-signing-setupSkill
- asc-submission-healthSkill
- asc-subscription-localizationSkill
- asc-testflight-orchestrationSkill
- asc-wall-submitSkill
- asc-whats-new-writerSkill
- asc-workflowSkill
- asc-xcode-buildSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 7 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when you need to notarize a macOS app for distribution outside the App Store.
- Distinctive: line 18
Before archiving, confirm a valid Developer ID Application identity exists:
- Distinctive: line 24
If no identity is found, create one at https://developer.apple.com/account/resources/certificates/add (the App Store Connect API does not …
- Very specific: line 28
If codesign or xcodebuild fails with "Invalid trust settings" or "errSecInternalComponent", the certificate may have custom trust overrides …
- Distinctive: line 49
Create an ExportOptions plist for Developer ID distribution:
- Distinctive: line 79
Verify the exported app's existing signature and nested code, then display its signing details:
- Distinctive: line 91
Stop before packaging or uploading if verification fails or the signing identity is unexpected.
- Very specific: line 93
Do not add --sign or --force to verification.
- Distinctive: line 143
After notarization succeeds, staple the ticket so the app works offline:
- Very specific: line 187
Add --timestamp to manual codesign calls, or use xcodebuild -exportArchive which adds timestamps automatically.
- Very specific: line 208
Always use --help to verify flags: asc notarization submit --help.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
macOS Notarization
Use this skill when you need to notarize a macOS app for distribution outside the App Store.
Preconditions
- Xcode installed and command line tools configured.
- Auth is configured (
asc auth loginorASC_*env vars). - A Developer ID Application certificate in the local keychain.
- The app's Xcode project builds for macOS.
Preflight: Verify Signing Identity
Before archiving, confirm a valid Developer ID Application identity exists:
security find-identity -v -p codesigning | grep "Developer ID Application"If 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).
Inspect Trust Settings
If codesign or xcodebuild fails with "Invalid trust settings" or "errSecInternalComponent", the certificate may have custom trust overrides that break the chain:
# Check for custom trust settings
security dump-trust-settings 2>&1 | grep -A1 "Developer ID"These 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.
Step 1: Archive
xcodebuild archive \
-scheme "YourMacScheme" \
-configuration Release \
-archivePath /tmp/YourApp.xcarchive \
-destination "generic/platform=macOS"Step 2: Export with Developer ID
Create an ExportOptions plist for Developer ID distribution:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>method</key>
<string>developer-id</string>
<key>signingStyle</key>
<string>automatic</string>
<key>teamID</key>
<string>YOUR_TEAM_ID</string>
</dict>
</plist>Export the archive:
xcodebuild -exportArchive \
-archivePath /tmp/YourApp.xcarchive \
-exportPath /tmp/YourAppExport \
-exportOptionsPlist ExportOptions.plistThis produces a .app bundle signed with Developer ID Application and a secure timestamp.
Verify the Export
Verify the exported app's existing signature and nested code, then display its signing details:
codesign --verify --deep --strict --verbose=2 "/tmp/YourAppExport/YourApp.app" && \
codesign --display --verbose=4 "/tmp/YourAppExport/YourApp.app" 2>&1Confirm:
- The verification command exits successfully; displaying signing details alone does not validate the signature
- The Authority chain is Developer ID Application → Developer ID Certification Authority → Apple Root CA, with the expected TeamIdentifier
- A Timestamp is present
Stop before packaging or uploading if verification fails or the signing identity is unexpected. Diagnose the failure and rebuild or re-export the intended app before checking again. These checks do not modify the bundle and do not establish notarization acceptance.
Do not add --sign or --force to verification. Apple's code-signing guidance distinguishes recursive verification with --deep from signing with --deep --force, which forcibly re-signs nested code.
Step 3: Create a ZIP for Notarization
ditto -c -k --keepParent "/tmp/YourAppExport/YourApp.app" "/tmp/YourAppExport/YourApp.zip"Step 4: Submit for Notarization
Fire-and-forget
asc notarization submit --file "/tmp/YourAppExport/YourApp.zip"Wait for result
asc notarization submit --file "/tmp/YourAppExport/YourApp.zip" --waitCustom polling
asc notarization submit --file "/tmp/YourAppExport/YourApp.zip" --wait --poll-interval 30s --timeout 1hStep 5: Check Results
Status
asc notarization status --id "SUBMISSION_ID" --output tableDeveloper Log (for failures)
asc notarization log --id "SUBMISSION_ID"Fetch the log URL to see detailed issues:
curl -sL "LOG_URL" | python3 -m json.toolList Previous Submissions
asc notarization list --output table
asc notarization list --limit 5 --output tableStep 6: Staple (Optional)
After notarization succeeds, staple the ticket so the app works offline:
xcrun stapler staple "/tmp/YourAppExport/YourApp.app"For DMG or PKG distribution, staple after creating the container:
# Create DMG
hdiutil create -volname "YourApp" -srcfolder "/tmp/YourAppExport/YourApp.app" -ov -format UDZO "/tmp/YourApp.dmg"
xcrun stapler staple "/tmp/YourApp.dmg"Supported File Formats
| Format | Use Case |
.zip | Simplest; zip a signed .app bundle |
.dmg | Disk image for drag-and-drop install |
.pkg | Installer package (requires Developer ID Installer certificate) |
PKG Notarization
To notarize .pkg files, you need a Developer ID Installer certificate (separate from Developer ID Application). This certificate type is not available through the App Store Connect API — create it at https://developer.apple.com/account/resources/certificates/add.
Sign the package:
productsign --sign "Developer ID Installer: YOUR NAME (TEAM_ID)" unsigned.pkg signed.pkgThen submit:
asc notarization submit --file signed.pkg --waitTroubleshooting
"Invalid trust settings" during export
Custom trust overrides are one possible cause. Use the read-only inspection in Preflight, identify the affected certificate, and obtain authorization before changing its trust settings.
"The binary is not signed with a valid Developer ID certificate"
The app was signed with a Development or App Store certificate. Re-export with method: developer-id in ExportOptions.plist.
"The signature does not include a secure timestamp"
Add --timestamp to manual codesign calls, or use xcodebuild -exportArchive which adds timestamps automatically.
Upload timeout for large files
Set a longer upload timeout:
ASC_UPLOAD_TIMEOUT=5m asc notarization submit --file ./LargeApp.zip --waitNotarization returns "Invalid" but signing looks correct
Fetch the developer log for specific issues:
asc notarization log --id "SUBMISSION_ID"Common causes: unsigned nested binaries, missing hardened runtime, embedded libraries without timestamps.
Notes
- The
asc notarizationcommands use the Apple Notary API v2, notxcrun notarytool. - Authentication uses the same API key as other
asccommands. - Files are uploaded directly to Apple's S3 bucket with streaming (no full-file buffering).
- Files over 5 GB use multipart upload automatically.
- Always use
--helpto verify flags:asc notarization submit --help.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

