apple: regenerate provisioning profiles that ASC has marked INVALID #28

Merged
founder merged 1 commit from asc-profile-regenerate into main 2026-08-16 04:41:31 +00:00
Owner

Both profile sync scripts reused a profile by name without checking profileState. Apple invalidates profiles when an App ID's capabilities change (the push work did this to both org.lately.phi profiles — currently INVALID in ASC), and the stale content only fails at TestFlight validation / Developer ID signing. Regenerate anything not ACTIVE.

🤖 Generated with Claude Code

Both profile sync scripts reused a profile by name without checking `profileState`. Apple invalidates profiles when an App ID's capabilities change (the push work did this to both `org.lately.phi` profiles — currently `INVALID` in ASC), and the stale content only fails at TestFlight validation / Developer ID signing. Regenerate anything not `ACTIVE`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
apple: regenerate provisioning profiles that ASC has marked INVALID
Some checks failed
deploy-web/age-eval path /var/lib/forgejo-runner-agent/age_keystore
deploy-web/age-env-appended github env written
deploy-web/post-age-ok boundary crossed; AGE_IDENTITY_PATH=/var/lib/forgejo-runner-agent/age_keystore
deploy-web/decrypt-entered decrypt step body running
deploy-web/decrypt-mem meminfo unavailable load 3.28 7.56 6.11 ncpu=32
deploy-web/nix-version nix (Nix) 2.34.7
deploy-web/capped-eval rc=0 15ba7fa319e30eeae76d5b28f7751e4d4d94fbf498.sqlite' is busy /nix/store/rv27z6wxgngf0zs4kz0gkbswjj50dfhy-agenix-0.15.0.drv
deploy-web/cf-decrypted cloudflare token decrypted, length 40
deploy-web/fly-decrypted fly token decrypted, length 651
deploy-web/masked add-mask emitted
deploy-web/decrypt-env-ok github env written
deploy-web/build-entered build step running
deploy-web/web-eval-ok web-container drv evaluated
deploy-web/prev-detached paths: /nix/store/jygi9i1ihviivnldv5q27vhk2q9qyp7j-runtime-deps error: Build failed due to failed dependency
deploy-web/detached-started realization detached
Release: If Needed / Check (Release Needed) (push) Successful in 5s
deploy-web/agenix-built rc=0 ed setting and you are not a trusted user /nix/store/j3666hp2alb0zqck9jk8mandhmk53970-agenix-0.15.0
deploy-web/detached-done Output paths: /nix/store/k8npz9vdp8glrg7a85d4mny9dv1pmd0z-runtime-deps error: Build failed due to failed dependency
deploy-web/web-built container built
deploy-web/pipeline-launched detached deploy pipeline started
deploy-web/pipe-start pipeline running detached
deploy-web/pipe-site site path empty: Cannot build '/nix/store/6m0win5ckkfw6d9idrb0509nlajhg0z6-lately-macro-plugin-7080470.drv'
deploy-web/pipe-site-log1 error: Cannot build '/nix/store/6m0win5ckkfw6d9idrb0509nlajhg0z6-lately-macro-plugin-7080470.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/h7xcw0nmy3fbd1frxyimgdkaiy5yb2xb
deploy-web/pipe-site-log2 -lately-macro-plugin-7080470 Last 22 log lines: > Running phase: unpackPhase > unpacking source archive /nix/store/5wkv5zd12pxcxhxgnmwadl6b8gzjxxia-source > source root is source > Runn
deploy-web/pipe-site-log3 ing phase: patchPhase > Running phase: updateAutotoolsGnuConfigScriptsPhase > Running phase: configurePhase > no configure script, doing nothing > Running phase: buildPhase > swift-buil
deploy-web/pipe-site-log4 d: /nix/store/f8h44vy7bv9dv9v1bfa80kmlq7d43svr-swift/usr/lib/compat/libxml2.so.2: no version information available (required by /nix/store/f8h44vy7bv9dv9v1bfa80kmlq7d43svr-swift/usr/lib/swift/linux/libFoundationXML.so)
deploy-web/pipe-site-log5 > swift-build: /nix/store/f8h44vy7bv9dv9v1bfa80kmlq7d43svr-swift/usr/lib/compat/libxml2.so.2: no version information available (required by /nix/store/f8h44vy7bv9dv9v1bfa80kmlq7d43svr-swift/usr/lib/swift/linux/libF
deploy-web/build-error pipeline unfinished or failed at job death; see pipe-* statuses
Deploy: Web / Deploy (Web) (push) Failing after 25s
Deploy: API / Deploy (API) (push) Failing after 3m38s
7080470034
Both profile sync scripts resolved an existing profile by name and reused it
unconditionally. Apple flips a profile to INVALID whenever the App ID's
capabilities or certificates change underneath it -- exactly what happened to
org.lately.phi.app-store and org.lately.phi.developer-id when the JMAP push
work enabled push notifications on the App ID. The stale profileContent still
downloads (minus the new entitlements) and the failure only surfaces much
later, at App Store validation or Developer ID signing.

Delete and recreate any resolved profile whose profileState is not ACTIVE,
logging the transition so the import run shows what was regenerated.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
key-store/key.store!28
No description provided.