CI/CD for Mobile Apps: Store Gates, Signing, and Staged Rollouts
CI/CD for Mobile Apps: Store Gates, Signing, and Staged Rollouts A mobile pipeline does not end at your own server. It ends at a store you do not control, with a signed binary that users install whenever they choose.
CI/CD for Mobile Apps: Store Gates, Signing, and Staged Rollouts
A mobile pipeline does not end at your own server. It ends at a store you do not control, with a signed binary that users install whenever they choose. That one fact changes how you branch, test, sign, release and recover, and it is why a pipeline copied from a web team tends to fail in predictable ways on iOS and Android. The fix is to design for the store, not around it: automate everything up to the submission, treat the rollout as a controlled experiment, and assume you cannot take a bad release back.
This article covers only what changes when the artifact is an app. For general pipeline design (speed, security, stage ordering), start with our post on fast, secure CI/CD pipeline design.
Key Takeaways
- Continuous deployment is not the goal for mobile. DORA says it works for web services but cannot be applied to mobile apps, so aim for continuous delivery: always releasable, low-risk, short lead times.
- Code signing is a pipeline concern, not a laptop concern. Credentials belong in a controlled store that CI can reach and the whole team can trigger.
- Staged rollouts are your rollback strategy. Plan the percentages, the crash thresholds and the pause criteria before you press release.
- Pair every risky change with a server-side switch, because the store cannot revert a binary on users’ phones.
- Measure lead time to the store and time to restore separately. Both are bounded by a channel you do not own.
Table of Contents
- Why the build goes to a store, not to your server
- Aim for continuous delivery, and name your jobs honestly
- Code signing: make it a team capability
- Testing: shape the pyramid around device reality
- The review gate: design your branches around the wait
- Staged rollouts are your rollback plan
- Observability closes the loop
- Measure the pipeline you actually have
- A reference flow for a mobile release
- Where an outside engineering partner helps
- FAQ
- Sources
Why the build goes to a store, not to your server
In a web pipeline, a merge can reach production in minutes and a bad deploy is reverted in minutes. In a mobile pipeline, the output is a compiled, signed binary that goes through a review you cannot speed up, and then sits in front of users who update on their own schedule. Some have auto-update on. Some never open the store.
That creates four constraints that shape everything downstream:
- Review gates you do not control. Apple and Google both review submissions. Timing varies, and a fix after release needs another review.
- Signing identities. Every build that reaches a device or a store must be signed with credentials that expire, are limited in number, and can be lost.
- Users on mixed versions. At any moment several releases are live. Your backend has to serve all of them.
- No instant rollback. You can stop a rollout from growing. You cannot pull the new version off phones that already installed it.
If you lead a team that ships mobile, you already feel these in the calendar. The useful question is which of them your pipeline can absorb and which your release process has to plan for.
Aim for continuous delivery, and name your jobs honestly
DORA’s guidance is blunt on this point: continuous deployment, where every change goes to production immediately, works for web services but cannot be applied to mobile apps. For mobile it recommends continuous delivery, meaning reliable automated tests, deployment automation and low-risk releases, judged by lead time, change failure rate, time to restore and release frequency.
In practice that means every merge to your main branch should produce a build that could be submitted. Whether you submit is a business decision about timing, marketing, backend readiness and review risk.
One habit pays off quickly: stop calling every job a “deploy.” Separate these jobs in your pipeline and in your team’s vocabulary:
| Job | What it proves | Who sees the result |
|---|---|---|
| Verify | Code compiles, lint and unit tests pass | Developers |
| Build signed artifact | A store-valid binary exists | QA, release owner |
| Distribute to testers | Internal and beta users can install it | Testers, stakeholders |
| Submit for review | The store has the build | Release owner |
| Release / ramp | Real users receive it | Customers |
Only the first three are fully in your control. Naming them separately stops a green pipeline from being read as “shipped.”
Code signing: make it a team capability
Signing is where mobile pipelines most often depend on one person. The classic failure is an iOS distribution setup that lives on a single engineer’s laptop, discovered the week a crash fix has to ship. The pipeline’s job is to remove that dependency.
What that looks like:
- Credentials live in shared, controlled storage. Flutter’s official delivery documentation recommends a certificate-synchronization approach for iOS so that distribution certificates are shared across machines, and notes the CI system needs access to the distribution certificate in order to sign. The same principle applies to native and React Native projects.
- CI gets read-only access. Build machines should consume signing material, not create or rotate it. Rotation is a deliberate, reviewed change by a named owner.
- Android upload keys are separated from app signing keys. With Google Play App Signing, your pipeline signs with an upload key and Google holds the key that signs what users receive. A compromised or lost upload key is recoverable. A lost key under the older model is not, so confirm which model each of your apps uses.
- Expiry is monitored. iOS certificates and provisioning profiles expire. Put the dates on a calendar the team sees, or in an alert, so an expiry never becomes a failed release at 5 p.m.
- Secrets stay out of the repository and out of logs. Treat keystores, API keys for store access and signing passwords like production database credentials.
This is also a security and continuity topic for leadership, not only for engineers. If your release capability depends on one person or one machine, it is a business risk with a simple fix.
Testing: shape the pyramid around device reality
Test automation is the other big mobile search topic, and the main mobile twist is that the cost of a test run depends heavily on where it runs. Host-machine unit tests are cheap. Emulator tests are slower. Real-device tests are the slowest and the most representative.
Google’s Android testing strategy guidance lays out a tiered approach: unit tests on the host machine, component and feature tests on local environments or emulators before merge, application tests after merge on emulators plus a phone and a foldable, and release-candidate end-to-end runs on a wider set of devices, with a larger device spread before release. The shape is the lesson: run the cheap checks on every change, and spend the expensive device time only where a release is at stake.
A workable tiering for most teams:
- On every pull request: lint, static analysis, unit tests and a small set of fast UI or component tests.
- On merge to main: a full signed build, plus UI tests on a short list of representative devices and OS versions.
- Nightly or on release candidates: the wider device matrix, accessibility checks and the slow end-to-end journeys.
On flaky UI tests, Google’s guidance for large tests is practical: wait for specific UI conditions or use idling resources instead of arbitrary sleeps, configure devices so the operating system does not interrupt tests, and add retries at more than one level while still fixing the flaky tests themselves. A retry that hides a flake is a debt you pay later in trust: once engineers stop believing a red build, the pipeline has stopped doing its job.
What this means for React Native and cross-platform teams
Cross-platform frameworks reduce duplicated application code, not the platform pipeline. A React Native or Flutter app still needs a macOS build environment for iOS, still needs platform-specific signing, and still goes through both stores. Run the iOS and Android builds as parallel jobs, keep JavaScript or Dart tests in the cheap tier, and keep the native build and device tests in the merge tier.
The one real shortcut is over-the-air updates for JavaScript. Apple’s Guideline 2.5.2 says apps must be self-contained in their bundle and may not download or execute code that changes features, so the practical rule is conservative: use OTA for small fixes within what your reviewed binary already does, and send anything that adds features or touches native code through a normal store release. Check the current wording of App Review Guideline 2.5.2 before building a release process on it, because reviewers interpret it, and your compliance is your responsibility.
The review gate: design your branches around the wait
While a build is in review, development does not stop. Teams usually branch the release candidate, keep merging new work to main, and merge fixes back afterwards. That creates extra merge and test effort, and any post-release fix needs approval again.
Ways to keep that manageable:
- Keep release branches short-lived. Cut late, freeze only what is under review, and merge fixes back the same day.
- Submit early, release later. Both stores let you hold an approved build until you choose to release it. Decouple approval from the date customers see anything.
- Ship smaller, more often. Large batches fail more often, and a big batch is exactly what you cannot cheaply undo. A regular, predictable release train beats rare heroic releases.
- Reserve an expedited path. Decide in advance who can request an expedited review for a serious defect, and what qualifies.
Our post on release management covers the general discipline; the mobile-specific change is that the calendar includes a reviewer.
Staged rollouts are your rollback plan
On the web, rollback is an action. On mobile, it is a plan made before release. Both stores give you a ramp.
Apple. App Store Connect’s phased release ramps automatic updates over seven days, from 1% on day one through 2%, 5%, 10%, 20% and 50% to 100% on day seven. You can pause it for up to 30 days. Phased release governs automatic updates, so users who go to the store and update by hand can still get the new version.

Google. Play Console staged rollouts deliver an update to a percentage of users that you raise over time, and you can halt the rollout if you find an issue. Staged rollouts apply to updates, not to a first publication.
Halting limits the blast radius. It does not repair the people who already have the build. The fix is a new version with a higher build number, through review again. So the question to answer before every release is not “can we roll back?” but “how few users do we want exposed while we find out?”
A sensible gating routine:
- Start with internal and beta tracks, using real testers on real devices.
- Release to a small first percentage and hold for a fixed window.
- Define go/no-go thresholds in advance: crash-free sessions and users, ANR rate (Android’s “application not responding” events), and any key business flow such as sign-in or checkout.
- Ramp only if the thresholds hold. Pause if they do not.
- Write down who has the authority to pause, and make it a button press, not a meeting.
The thresholds are yours to set from your own baselines. A number copied from another company’s blog is less useful than the last six releases of your own app.
Pair releases with server-side switches
Because the binary cannot be reverted, put risk behind controls you can change instantly: feature flags, remote configuration and a kill switch for any new, high-impact feature. Ship the code dormant, enable it for a small cohort, and turn it off server-side if it misbehaves. This turns a multi-day store cycle into a minutes-long decision for the riskiest changes.
It also forces a backend discipline: keep APIs backward compatible, because old app versions will call them for months. Our guide to zero downtime deployments covers the backend side of that contract.
Observability closes the loop
A staged rollout is only as good as the signal you read during it. You need crash reporting, performance data (cold start, ANR, frame drops) and product analytics tagged by app version, so you can compare the new release against the previous one in near real time. Without version-level segmentation, a 5% rollout hides its problems inside the other 95%.
Wire those signals into the release process: a dashboard the release owner checks at defined intervals, and alerts that tell the team when a threshold is crossed. For the broader approach, see our application observability guide.
Measure the pipeline you actually have
DORA’s four measures still apply, but mobile bends them:
- Lead time should be split into commit to testable build (hours, and yours to improve) and commit to production release (days, because of review and rollout).
- Release frequency is capped by your release train and by how many versions users tolerate, not by how fast you can merge.
- Change failure rate tends to go up as batches grow, which is another argument for smaller, more frequent releases.
- Time to restore is bounded by the store channel. Track it, but expect improvement to come from flags and staged rollouts rather than faster hands.
Alongside those, watch the things that make engineers’ days worse: build duration, cache hit rate, test flake rate and queue wait for build machines. Treat a build that quietly gets slower each month as a bug. Parallelizing UI tests across devices, caching dependencies and ordering stages from cheap to expensive usually take the most time off. If you are tuning pipeline throughput and want an example of automating a tedious generated artifact on every change, regenerating hreflang tags in CI/CD shows the same “automate on every commit” idea applied to a companion web property.
A reference flow for a mobile release
Pulling the pieces together, a mature mobile flow looks like this:
- Pull request: lint, static analysis, unit tests, a fast smoke test. Feedback in minutes.
- Merge to main: parallel iOS and Android signed builds, device tests on a short matrix, artifacts stored.
- Internal and beta distribution: every merge or daily build goes to testers automatically.
- Release candidate: frozen branch, full device matrix, accessibility and upgrade-path tests (installing over the previous version, not only fresh installs).
- Submission: automated upload with metadata, held for manual release once approved.
- Staged rollout: small percentage, defined hold, threshold-gated ramp, flags for risky features.
- Post-release: version-level monitoring, a retrospective on lead time and any pause, and a hotfix path ready.
Upgrade-path testing deserves emphasis. Web teams test the new version. Mobile teams must also test the transition from the last several versions, including data migrations on the device, because that is what real users do.
Where an outside engineering partner helps
Most mobile pipelines get stuck in the same places: signing owned by one person, flaky device tests nobody trusts, and a release process that lives in a spreadsheet. Fixing these touches build engineering, test strategy, backend compatibility and release governance at once, which is hard to do between sprints.
Ridiculous Engineering works with business and technology leaders from discovery through long-term improvement, and clients work directly with senior engineers. If you want to rework how your team builds, signs and releases mobile apps, our software consulting and delivery support is the place to start, and our custom software development work covers building the apps and the systems behind them. Scope and pricing are set per engagement, on request.
FAQ
Can mobile apps use continuous deployment?
Not in the way a web service does. DORA states that continuous deployment cannot be applied to mobile apps, because releases pass through store review and reach users on their own schedule. Aim for continuous delivery: every merge yields a releasable build, and a person or a rollout policy decides when users get it.
How do you roll back a bad mobile release?
You cannot remove a build from phones that already installed it. You halt or pause the staged rollout to limit exposure, switch off the affected feature server-side if it sits behind a flag, and ship a fixed version with a higher build number. That is why the ramp and the flags matter more than a rollback script.
How is CI/CD for React Native different from native?
The shared JavaScript code is cheaper to test, but you still need a macOS environment for iOS, platform-specific signing, and store submission for both platforms. Over-the-air updates can cover some JavaScript-only fixes, but changes to native code or features go through a normal store release.
Which tests should run on every commit?
Lint, static analysis, unit tests and a short smoke test. Reserve broader device matrices for merges to main, nightly runs and release candidates, as Google’s testing guidance describes, so feedback stays fast without giving up coverage before release.
Sources
- DORA: Continuous delivery capability
- Flutter: Continuous delivery with Flutter
- Android Developers: Testing strategies
- Apple: Release a version update in phases
- Play Console Help: Release app updates with staged rollouts
- Guideline 2.5.2: executable code and hot updates