Dan Romero

TestFlight public link

Updated

A prompt that takes an iPhone app from running on your phone to a TestFlight link anyone can join, through Apple’s beta review. The sequel to the iPhone app quickstart, written from three apps that passed beta review with Xcode 27 and iOS 27.

840 words

Get my iPhone app onto a TestFlight public link anyone can join, passing Apple’s beta review the first time. You do the project work and write every word Apple asks for. I do what only I can. If a value below is blank, ask for all the blanks in one short message first.

Values

Rules

1. Decide first

Tell me if any answer is no:

  1. Is it fine if the link spreads? Anyone can share it, and anyone who installs the app can read what’s inside, so access control lives on a server.
  2. Can a reviewer reach every screen alone? With sign-in, that’s a demo account that never expires, with the server on (guideline 2.1(a)).
  3. Is it meant for the public? Guideline 2.2 expects it. An app useful only to me may be rejected; internal TestFlight is the fallback.
  4. Does a stranger’s first screen work? Show a working screen or a labeled sample, not a dead end.

Children under 13 can’t be testers. A parent installs it under their own Apple Account.

2. The app

3. The release script

Write scripts/release-testflight.sh, which:

  1. Refuses a dirty tree, runs the tests, and raises CURRENT_PROJECT_VERSION by one, with a trap that restores it on failure.
  2. Archives and uploads with Xcode’s signed-in account:
xcodebuild -scheme MyApp -configuration Release -destination 'generic/platform=iOS' \
  -derivedDataPath DerivedData.noindex -archivePath DerivedData.noindex/MyApp.xcarchive \
  -allowProvisioningUpdates archive
xcodebuild -exportArchive -archivePath DerivedData.noindex/MyApp.xcarchive \
  -exportOptionsPlist scripts/ExportOptions.plist -exportPath DerivedData.noindex/export -allowProvisioningUpdates

ExportOptions.plist: method app-store-connect, destination upload, signingStyle automatic, teamID, manageAppVersionAndBuildNumber false.

  1. Checks the archive before uploading: bundle ID, build number, encryption answer, icon and manifest from its Info.plist; no keys (grep -rqE 'sk-[A-Za-z0-9_-]{20,}|BEGIN [A-Z ]*PRIVATE KEY'); no scripts or private files.
  2. Has --dry-run, everything but the upload. Run it before asking me.
  3. Commits the build number after the upload, as Upload TestFlight build N. Apple never takes a number twice.

4. App Store Connect, once

One step at a time, with the words to paste:

  1. Register the bundle ID explicitly under Certificates, Identifiers & Profiles. A wildcard profile never registers one, and the upload fails with “App record … not found”.
  2. New App with that bundle ID. Store names are unique; the home screen keeps the short name.
  3. TestFlight → Test Information: description, feedback email, privacy URL, review contact, review notes. Have my phone number ready: the contact won’t save without it, and a failed save drops what I typed.
  4. Review notes: what the app does, the exact path through it, hidden gestures or modes, and anything that will look odd. No sign-in? Say so, and uncheck “Sign-in required”, which comes pre-checked.
  5. An internal group with just me. Apple requires it before an external one.
  6. An external group, then Create Public Link → Open to Anyone, with the limit. It works once a build is approved.

5. Each build

  1. Dry run, my yes, upload. Processing takes 5 to 30 minutes.
  2. I install it from TestFlight and do the main thing. It’s the one check of the real build.
  3. Add it to the external group with What to Test and “Automatically notify testers”. I click Submit Review.
  4. First time only: attach the build to the draft App Store version (Distribution → the version → Build → Add Build → Save, not Add for Review). Otherwise the Apps page shows a blank icon.

First builds were approved the same day to two days later, and later builds of the same version at once. A new version number likely means a full review. One build per version can be in review: wait rather than withdraw. Builds expire after 90 days, so upload replacements early. After a rejection, read General → App Review, fix, and upload a new build.

The test that proves it

Someone whose phone isn’t mine opens the link, installs TestFlight and the app, and does the main thing. Then report the link, the build, what was checked on a real device and what wasn’t, and when it expires.