Skip to content

docs(tf): record why export needs a live Xcode session, not an API key - #908

Merged
wei18 merged 1 commit into
mainfrom
docs/tf-export-signing-note
Jul 20, 2026
Merged

wei18 merged 1 commit into
mainfrom
docs/tf-export-signing-note

Conversation

@wei18

@wei18 wei18 commented Jul 20, 2026

Copy link
Copy Markdown
Owner

What

Adds an 8-line comment above tf:upload's xcodebuild -exportArchive documenting why the export step depends on a live Xcode GUI Apple ID session.

Why

During a real TestFlight run (both apps, 2026-07-20) the archive succeeded but export failed with No signing certificate "iOS Distribution" found. Root cause: the Xcode GUI session had expired. Passing -authenticationKey* to authenticate via the ASC API key instead surfaced Cloud signing permission error — cloud signing requires an Admin-role key and the repo's key is App Manager. The working fix is to re-log-in in Xcode; the comment records this so the next expiry isn't re-diagnosed from scratch, and notes the headless path if an Admin key is ever added to secrets/.env.

Both apps uploaded successfully after the re-login (Sudoku build 202607200651, Minesweeper build 202607200655).

Verification

Comment-only change; pre-commit gitleaks + hygiene gates pass. No code path altered.

🤖 Generated with Claude Code

tf:upload's export step authenticates -allowProvisioningUpdates via the
Xcode GUI Apple ID session; when it expires, export dies with "No signing
certificate 'iOS Distribution' found" even though the archive succeeded.
Passing -authenticationKey* instead does NOT fix it — cloud signing through
an ASC API key needs an Admin-role key, and the repo's key is App Manager
("Cloud signing permission error", verified 2026-07-20 across both apps).
Comment records the diagnosis + the re-login fix so the next expiry isn't
re-triaged from scratch, and notes the headless path if an Admin key lands.

Co-Authored-By: Claude Fable 5 <[email protected]>
@wei18
wei18 enabled auto-merge (squash) July 20, 2026 07:26
@wei18
wei18 merged commit 17a0101 into main Jul 20, 2026
5 checks passed
@wei18
wei18 deleted the docs/tf-export-signing-note branch July 20, 2026 07:26
@wei18 wei18 mentioned this pull request Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant