Lesson 7 of 9 · 28m
Builds, Signing, and the Release Pipeline
Create a repeatable mobile release pipeline with versioned artifacts, signing discipline, store metadata, phased rollout, and emergency rollback plans.
A mobile release is not finished when the app compiles on a developer laptop. It is finished when a reproducible artifact is signed with the right identity, uploaded with correct metadata, rolled out deliberately, observed in production, and capable of being superseded safely. Teams discover this after losing a keystore or shipping a bad build to 100% of users. Do not learn it that way.
Versions are operational contracts
Maintain both user-visible and machine-ordering versions:
iOS: CFBundleShortVersionString 1.8.0
iOS: CFBundleVersion 180
Android: versionName 1.8.0
Android: versionCode 180Android versionCode must monotonically increase. iOS build numbers must increase per upload context. Encode version generation in CI, including commit SHA and build timestamp in internal diagnostics.
Signing is custody, not configuration trivia
Android release builds traditionally use an upload keystore; Google Play App Signing holds the final app-signing key if enrolled. iOS uses distribution certificates and provisioning profiles managed manually or through App Store Connect / EAS credentials. Whoever controls signing controls the app's release identity.
keytool -list -v -keystore upload.keystore -alias uploadStore encrypted backups, document custodianship, and test restore procedures. A lost Android upload key can become an existential distribution problem depending on enrollment and recovery options.
Reproducible builds need clean environments
CI should build from a clean checkout with locked dependencies:
bun install --frozen-lockfile
cd android && ./gradlew assembleRelease
eas build --platform ios --profile productionFor Expo, a good eas.json separates development, preview, and production signing or distribution behavior. The exact tool matters less than repeatability and artifact provenance.
Release channels are blast-radius control
Use internal, beta, and production tracks. Android staged rollout and iOS phased release reduce damage but do not replace monitoring. Define halt criteria before the release: crash-free sessions, startup regression, login conversion, API errors, and critical permission-flow failure. Someone must have authority to halt rollout without scheduling a meeting.
Store review is not a compile step either. Privacy labels, permission declarations, background-mode justification, account deletion rules, export compliance, and age ratings all affect approval. Review teams and users both notice copy-pasted release notes.
Emergency response is version-aware
A native defect cannot always be fixed by an over-the-air JavaScript update. Maintain a hotfix branch strategy, keep prior artifacts and symbols, and know the exact minimum native version compatible with your update server. Rollback often means publishing a new build with the old behavior, not time-traveling the store.
Field notes
- Never keep the only copy of a keystore on a laptop.
- Build numbers, bundle identifiers, signing identities, update channels, and API environments must be visible in internal builds.
- Store review delays are part of incident response time.
- A successful upload is not a successful rollout; monitor adoption and health separately.
Was this lesson helpful?