Ios testflight release

From SteveGJones/ai-first-sdlc-practices · View interactive version

Ios testflight release is an AI agent skill from the GitHub repository SteveGJones/ai-first-sdlc-practices. Prepare and ship an iOS build to TestFlight — runs the submission pre-flight checks, fixes the config that blocks uploads/processing, then walks internal→external beta review. Use when releasing an iOS build to testers.

How to use this skill

Skill file

iOS TestFlight Release

Get an iOS build onto TestFlight without the classic upload/processing/beta-review blockers. This

skill encodes real incidents (e.g. a build silently never processed because of a missing

NSMotionUsageDescription — ITMS-90683) into a pre-flight → upload → confirm → distribute flow.

Belongs to the ios-release-engineer discipline. Run it before every TestFlight upload; the

config checks are cheap and the failures are expensive (a rejected/stalled upload costs a round-trip).

Arguments

Steps

1. Run the pre-flight checks (config that blocks uploads)

Run the bundled checker from the plugin's scripts directory:

python -m ios_preflight.cli <project-dir> [--uses-push]

(Set PYTHONPATH to the plugin's scripts/ dir, or run `python plugins/sdlc-team-ios/scripts/ -m

ios_preflight.cli` from a checkout.) It reports, and you must resolve every ERROR before uploading:

NS…UsageDescription purpose string, or App Store Connect rejects the build in processing

(ITMS-90683). The check maps frameworks to keys (CoreMotion→NSMotionUsageDescription,

AVFoundation→NSCameraUsageDescription, CoreLocation→NSLocationWhenInUseUsageDescription,

Contacts, Photos, Speech, HealthKit, …). **Rule of thumb: if a permission dialog could appear, the

string must exist — and be a real human sentence** (Apple rejects placeholder text).

only exempt encryption (standard HTTPS). This skips the export-compliance questionnaire on every

upload; without it each build stalls waiting for an answer in ASC.

file/disk timestamps, system boot time, disk space) or bundle third-party SDKs; Apple flags builds

without it.

2. Verify release-default safety and versioning (not caught by the plist checks)

CFBundleVersion, or it's rejected. Adopt a policy and automate it — pre-1.0, keep

MARKETING_VERSION fixed (e.g. 1.0.0) and stamp CFBundleVersion from

git rev-list --count HEAD (optionally plus the short SHA and date) so every tester build is

traceable to an exact commit.

and experiment toggles default OFF in Release (gate them behind a build config or a flag that's

off unless explicitly enabled). No secrets/API keys in the bundle — use xcconfig/build settings and

confirm nothing sensitive is in the archived Info.plist.

the build number), that target may need ENABLE_USER_SCRIPT_SANDBOXING = NO (leave it YES

elsewhere), or the archive fails.

3. Confirm signing & capabilities

entitlement with no matching provisioning profile fails the archive). See ios-signing-doctor if

the archive/signing fails.

4. Archive, upload, and **confirm the build actually processes**

Transporter, xcrun altool/notarytool path, the App Store Connect API, or fastlane pilot.

App Store Connect (TestFlight tab). A processing failure (e.g. a missing purpose string) can leave

the upload silently never becoming a build — check, don't assume.

5. Distribute: internal first, then external + Beta App Review

immediately after processing. This is the fastest first loop; shake out the obvious here.

version. Before submitting externally, ensure:

is any login, and clear "What to Test" notes,

6. Report

Summarise: pre-flight result (errors fixed), build number + the commit it maps to, whether the build

processed, and which testing track it went to. If anything is unresolved (e.g. App Privacy not yet

filled), say so explicitly rather than implying the external release is ready.

Notes

version-sensitive and re-verify against developer.apple.com if a message doesn't match.

metadata above. Get internal working first.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.