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
- App name, and a longer store name in case it’s taken:
- Bundle ID:
- Sign-in or a server: none, or what a reviewer needs to get in
- Support email:
- First tester limit (default 100):
Rules
- Ask before every upload, every Submit Review and every change to testers. A yes covers one build.
- Mine, never yours: paying for the Apple Developer Program ($99 a year), accepting Apple’s agreements, signing in to Xcode and App Store Connect, my phone number, and clicking Submit Review. Never ask for my password.
- An App Store Connect API key is optional. If we use one, I create it and keep its
.p8 file outside the repo myself. Never in the repo or chat.
1. Decide first
Tell me if any answer is no:
- 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.
- 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)).
- 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.
- 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
INFOPLIST_KEY_ITSAppUsesNonExemptEncryption = NO if it uses only HTTPS, hashing, signing and the Keychain. Without it, every build waits for an export compliance answer in App Store Connect.
- A 1024 × 1024 icon with no transparency.
PrivacyInfo.xcprivacy if it uses UserDefaults or @AppStorage: NSPrivacyAccessedAPICategoryUserDefaults, reason CA92.1.
- Account deletion if it creates accounts (guideline 5.1.1(v)).
- A public privacy policy, linked from the app, and a support page. Test Information doesn’t require the policy; guideline 5.1.1(i) does.
3. The release script
Write scripts/release-testflight.sh, which:
- Refuses a dirty tree, runs the tests, and raises
CURRENT_PROJECT_VERSION by one, with a trap that restores it on failure.
- 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.
- 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.
- Has
--dry-run, everything but the upload. Run it before asking me.
- 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:
- Register the bundle ID explicitly under Certificates, Identifiers & Profiles. A wildcard profile never registers one, and the upload fails with “App record … not found”.
- New App with that bundle ID. Store names are unique; the home screen keeps the short name.
- 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.
- 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.
- An internal group with just me. Apple requires it before an external one.
- An external group, then Create Public Link → Open to Anyone, with the limit. It works once a build is approved.
5. Each build
- Dry run, my yes, upload. Processing takes 5 to 30 minutes.
- I install it from TestFlight and do the main thing. It’s the one check of the real build.
- Add it to the external group with What to Test and “Automatically notify testers”. I click Submit Review.
- 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.