Troubleshooting a delivery
Symptoms, causes and actions for a TestFlight delivery that did not happen or failed, built from the README and the scripts' error paths.

When a merged change does not show up in TestFlight, the cause is in one of four places: the GitHub workflow, the worker's admission rules, the build and export, or Apple's processing. This page maps what you can observe to where to look.

Where to look

Evidence

Location

Commit status TestFlight / Clipper

On the commit in GitHub: pending, success, failure, or absent

Worker errors

~/Library/Logs/SeedExact/delivery.err on the build Mac (lines TestFlight delivery failed: ...)

Worker output

~/Library/Logs/SeedExact/delivery.log

Worker state

~/.local/share/seed-exact-ci/delivery.json (phase, build, sha, shipped, reported)

Build logs

~/.local/share/seed-exact-ci/seed/frontend/apps/mobile-exact/target/testflight/<build>/: build.log, export.log, verify.log

LaunchAgent

launchctl print gui/$(id -u)/org.seedhypermedia.seed-exact-testflight

The README names the first and the build logs as the starting points (README).

Symptoms

Symptom

Cause

Action

No TestFlight / Clipper status on a merged commit, no new build

The push left frontend/apps/mobile-exact identical to the last shipped commit. The worker records it as unchanged and posts nothing. This is by design since #1496

None. Check delivery.json: phase is unchanged

No status, and the push did change the app

The Seed Exact workflow run for that push failed, is still running, or did not trigger (the push touched none of the filtered paths). An earlier run still in progress blocks later ones

Open the Actions run. Fix or re-run it. See GitHub Actions workflow

No status for any recent push

The worker is not running, the Mac is offline or logged out, gh lost its login, or a tick is still holding worker.lock during a long build

Check the LaunchAgent and delivery.err. Pushes that arrived meanwhile are processed in order once it runs again

Status stays pending for a long time

Building, exporting, or waiting for Apple. Verification alone waits up to 45 minutes

Read verify.log for the latest processingState / internal line

Status failure: Delivery failed: <build>

Any exception in deliver. The reason is in delivery.err and the build's logs

Find the failing step below, fix the cause, then request another attempt

Install bun@... and update the launch agent's BUN setting in delivery.err

The app's packageManager changed and the worker's BUN points at another version

Install that Bun, run BUN=<path> tools/install-clipper-ci.sh again

build failed: .../build.log

Exact's ios --device --archive --unsigned failed: a compile error or a missing Xcode component

Read the tail of build.log. Reproduce with bun exact.mjs ios --device --archive out.ipa --unsigned

A failure before any target/testflight/<build> directory exists

The Exact pin could not be fetched, bun install or bun run test failed in the worker checkout, or the build number probe got an API error

delivery.err and delivery.log

Info.plist mismatch: ...

The built app's version, build number or bundle id differs from what the script asked for

Check app.json and that Exact honoured EXACT_VERSION and EXACT_BUILD_NUMBER

Invalid TestFlight build number (exit 2)

BUILD_NUMBER does not match up to four digits and up to two dotted one or two digit parts

Use the <days>.<hour>.<minute> form

Cannot open or Cannot unlock the Mintter signing keychain

The dedicated keychain or its password file is missing or wrong

See Signing and credentials

export/upload failed (<rc>): .../export.log

Signing or upload was refused: an expired certificate or profile, a profile name mismatch, an App Store Connect API error, or a build number Apple already has

Read export.log. Renew certificate and profile together if expired

Export fails around file copying

A non system rsync on PATH. The script already runs xcodebuild with a system only PATH for this reason

Do not change that line; check for wrappers that reset PATH

TestFlight verification failed (<code>): .../verify.log

Apple rejected the build (INVALID, FAILED), it is EXPIRED or PROCESSING_EXCEPTION, export compliance stayed missing, or the wait timed out

verify.log, and the email from App Store Connect for a rejection

App Store Connect <status> for <path>: ...

The API refused a request. The message carries the HTTP status and the start of Apple's body, for example an authentication or permission error

Read the body. Check the key metadata file and the key's role in App Store Connect

No App Store Connect record for media.hyper.seed

The API key cannot see an app with this bundle id

The key belongs to another account, or the app record is missing

A build was uploaded but the status is failure

Upload succeeded and verification failed or timed out. The number is reserved in the state

Request another attempt: a new attempt allocates a new build number and builds again

The same commit never retries after a failure

A failed attempt is reported once and then skipped until the run's run_attempt increases or a later push arrives

See below

The scripts contain no special handling for an Apple agreements error (HTTP 403 when a program agreement is unsigned). It would surface as the generic App Store Connect 403 ... message or in export.log; that reading is inferred from the error paths, not from a recorded incident.

Requesting another attempt

"Re-run the latest failed Seed Exact GitHub Actions run to request another attempt before a later push is delivered" (README). Re-running the workflow run in GitHub raises its run_attempt. The worker sees [run id, run_attempt] as a new attempt, allocates a fresh build number and delivers again once the re-run is green. Alternatively the next push to main that passes is built, and it contains the undelivered change because shipped did not move.

Re-running a run whose delivery already succeeded does nothing: the worker skips a commit it has shipped.

Stale build number

Build numbers come from the clock, so a retry after some time gets a higher number. Two cases need care:

    Manual runs. BUILD_NUMBER=<n> tools/testflight.sh with a number Apple already has fails at upload. Omit BUILD_NUMBER to take the clock.

    Worker restart mid delivery. The worker probes the number with --exists first. If its own earlier upload is there (reserved is set) it only verifies; if someone else used the number it allocates the next minute. A manual upload from the same Mac therefore cannot collide with the worker.

Running a delivery by hand

On the build Mac, from the app directory, with EXACT2 pointing at an Exact checkout at exact.rev:

UPLOAD=0 tools/testflight.sh # sign and export only, proves the signing setup tools/testflight.sh # full upload and verification

A manual upload does not update delivery.json, so the worker may later build the same commit again under a new number.

User stories

The code described here exists to deliver these stories. Each story lists this page in its Trace (traceability).

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

Unsubscribe anytime

Attributes
name
Troubleshooting a delivery
summary
Symptoms, causes and actions for a TestFlight delivery that did not happen or failed, built from the README and the scripts' error paths.