Find out why a build did not ship and fix it
A maintainer wants to find out quickly why a merged change did not reach TestFlight, fix the cause and get it delivered.

As a maintainer, I want to find out why a merged change did not reach TestFlight and get it delivered, so that testers are never stuck on an old build without anyone knowing why.

Situation

A change was merged a while ago and a tester says there is no new build. I can open GitHub and sign in to the build Mac.

What I do

    Open the merged commit on GitHub and read its "TestFlight / Clipper" status.

    If there is no status, open the "Seed Exact" run for that commit.

    On the build Mac, read the delivery error log and the logs of that build.

    Fix the cause.

    Re-run the failed "Seed Exact" run on GitHub to ask for another attempt, or let the next merge carry the change.

What I should see

    The status tells me where to look: yellow while building or waiting for Apple, green when testers have the build, red with "Delivery failed" and the build number, or missing.

    A missing status on a merge that did not change the app is normal. Nothing was built on purpose.

    A missing status on a merge that did change the app means the "Seed Exact" run failed, is still running or did not start.

    The delivery error log has a line beginning "TestFlight delivery failed:" with the reason.

    Each build keeps three logs: one for the build, one for signing and upload, one for the wait on Apple.

    A long wait is usually Apple: the third log shows the processing state, and the wait gives up after 45 minutes.

    Re-running the failed run on GitHub makes a new attempt with a new build number.

    Re-running a run whose build already shipped does nothing. If nobody retries, the next passing merge contains the missing change.

When something goes wrong

    The log says "export/upload failed": signing or upload was refused, often an expired certificate or profile. I renew both together and ask for another attempt.

    The log says to install another Bun version and update the launch agent: the pinned Bun changed. I install it and run the installer again.

    The log says the signing keychain cannot be opened or unlocked: the keychain or its password file is missing on the build Mac. I restore it.

Not included

    A failure is reported once. Nothing retries by itself, and nobody is alerted beyond the red status.

    There is one build Mac. If it is off or signed out, no builds happen.

    An unsigned Apple agreement has no message of its own. It would appear as a refused request. See Troubleshooting a delivery.

    A build made by hand is not recorded, so it may be built again.

Trace

Story US-TEAM-07, status Shipped. These links are kept in step with the traceability matrix and with the "User stories" section of every page listed here.

Design

This story is about the team's tooling. No design page takes part.

Implementation

Page

Part it plays

Troubleshooting a delivery

Symptoms, causes and actions; requesting another attempt; running a delivery by hand

CI and delivery

The whole path, to place a failure in one of its steps

The Clipper delivery worker

The state file, admission rules, retries and the LaunchAgent

GitHub Actions workflow

Why a run did not trigger or failed, and how the worker reads it

Building and uploading to TestFlight

Each step of the build script and its error messages

Verifying a build on App Store Connect

Build states, timeouts and exit codes while waiting for Apple

Signing and credentials

Keychain, certificate, profile and key files; expiry and renewal

From user workflow to TestFlight

When something stops after merge

Commands and verbs

The delivery commands to run by hand

Clipper and the Ion simulator

The build Mac

The Exact framework

The Exact pin the worker checks out, and the build verb that can fail

Code

File

What

tools/clipper-deploy.py L83-158

tick: which pushes are waited for, skipped or retried

tools/clipper-deploy.py L104-126

admission: in-progress runs block, failures skip, unchanged app is passed over

tools/clipper-deploy.py L135-151

pending, failure and success statuses and the reported flag

tools/clipper-deploy.py L59-76

the Bun version check and the build number probe

tools/testflight.sh L26-31

the build number check

tools/testflight.sh L34-37

build failed: build.log

tools/testflight.sh L47-52

Info.plist mismatch

tools/testflight.sh L107-131

keychain unlock and export/upload failed

tools/testflight.sh L133-142

TestFlight verification failed

tools/testflight-verify.mjs L79-112

rejected, not testable, export compliance and the 45 minute timeout

tools/install-clipper-ci.sh L7-9

the Bun check on installation

README.md L38-42

where to look and how to request another attempt

Tests

File

What it checks

tools/test_clipper_deploy.py

testfailurewaitsforanewattempt

tools/test_clipper_deploy.py

testanundeliveredappchangeisbuiltwiththenextpush

tools/test_clipper_deploy.py

testinterruptedstatusupdatedoesnotrepeatupload

tools/test_clipper_deploy.py

testpersonalbundleandfailedchecksdonotstartdelivery

tools/test_clipper_deploy.py

testqueuedpusheswaitforchecksanddeployinorder

Delivery

Delivered by #1470, #1472, #1496.

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime

Attributes
Epic
Team
name
Find out why a build did not ship and fix it
Story
US-TEAM-07
Status
Shipped
summary
A maintainer wants to find out quickly why a merged change did not reach TestFlight, fix the cause and get it delivered.