Asc signing setup

From hanamizuki/solopreneur · View interactive version

Asc signing setup is an AI agent skill from the GitHub repository hanamizuki/solopreneur. 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.

How to use this skill

Skill file

asc signing setup

Use this skill when you need to create or renew signing assets for iOS/macOS apps.

Preconditions

Workflow

  1. Create or find the bundle ID:
  1. Configure bundle ID capabilities:

user-owned web session and the Developer Portal Bundle ID resource ID:

capability enum. If the cached session cannot access Developer Portal,

clear its scoped cache, then log in again with the same binary:

associate App Group resources. Use an Account Holder or Admin web session:

Bundle ID resource ID with asc bundle-ids list. A changed assignment

invalidates provisioning profiles containing that App ID, so regenerate

affected profiles before the next signed build.

  1. Create a signing certificate:
  1. Create a provisioning profile:
  1. Download the profile:
  1. Inspect and install the downloaded profile locally when needed:

Rotation and cleanup

Shared team storage with `asc signing sync`

Use this when you want a lightweight, non-interactive alternative to fastlane match for encrypted git-backed certificate/profile storage.

# Protect secret inputs before use
chmod 600 "./signing-sync-password" "./distribution.p12" "./distribution-p12-password"

# Push a usable private identity with its matching certificate and profile
asc signing sync push \
  --bundle-id "com.example.app" \
  --profile-type IOS_APP_ADHOC \
  --repo "git@github.com:team/certs.git" \
  --password-file "./signing-sync-password" \
  --identity "./distribution.p12" \
  --identity-password-file "./distribution-p12-password" \
  --output json

# Pull and decrypt them into a local directory
asc signing sync pull \
  --repo "git@github.com:team/certs.git" \
  --password-file "./signing-sync-password" \
  --output-dir "./signing" \
  --output json

Notes:

--identity, or use --private-key with --identity-sha256 to select its

matching App Store Connect certificate. A multi-identity PKCS#12 also needs

--identity-sha256.

--password was removed in 5.0.0 and is rejected. ASC_MATCH_PASSWORD is

no longer read and is ignored if set.

identityPresent: false; it is not a usable signing identity by itself.

0600. Importing or using the pulled identity remains a separate explicit step.

MAC_CATALYST_APP_DIRECT; certificate/profile-only sync remains available.

Reconcile ad hoc devices and profiles

Use the experimental reconcile workflow for deterministic, additive changes

derived from an Xcode archive and a protected desired-devices file:

asc signing reconcile plan \
  --archive-path ".asc/artifacts/App.xcarchive" \
  --devices-file ".asc/distribution/devices.json" \
  --output json

asc signing reconcile apply \
  --plan ".asc/distribution/signing/plan.json" \
  --confirm \
  --output json

Planning performs no mutation and may return ready: false. Apply can register

missing devices, create safe baseline App IDs, and create successor ad hoc

profiles; it never deletes or patches resources, enables capabilities, or

creates certificates. Review the plan before --confirm. Use the

asc-ad-hoc-distribution skill when these signing effects should be bound into

an end-to-end distribution plan hash.

Run one command with an ephemeral identity

On macOS, avoid persistent login-keychain and profile changes by wrapping the

child command:

asc signing run \
  --identity "./signing/App.p12" \
  --identity-password-file "./signing/App-password" \
  --profile "./signing/App.mobileprovision" \
  --receipt ".asc/distribution/signing-run.json" \
  -- xcodebuild -exportArchive \
    -archivePath ".asc/artifacts/App.xcarchive" \
    -exportPath ".asc/artifacts/release-testing" \
    -exportOptionsPlist ".asc/ExportOptions.release-testing.plist"

The command runs directly without a shell, preserves the child's exit code,

uses an isolated temporary keychain, and cleans up its temporary profile. It

does not print success data, so the child owns stdout. Never pass identity

passwords inline.

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.