Ship to the stores

From code to a phone in someone's hand, one station at a time, and the shortcut for fixes that are only JavaScript. Ship a few changes and see which road each one has to take.

Level: IntermediateWatch: 14 steps · ~1 minuteShip a change, slip on the wayRecall: 3 questions · 8 cardsCompare 4 changesJSON · plist · shell

What you'll take away

  • Tell the version people see from the build number every upload must raise
  • Explain what signs an upload on iOS and Android, and which key Play App Signing keeps
  • Get a build to testers through TestFlight or internal testing, then release it in stages
  • Know what EAS Update can ship over the air, and what needs the store road again

The 1-minute version

Tap a point and the picture below plays that step.

4Compare them all
App Store ConnectiOS
app.json · 1.4.0 (42)app.json (42)
App Store ConnectApp Store
Shop
Look up com.example.shop → …
Step 1 / 14 · step by step
1.4.0 (42)in app.json
42newest at App Store
42newest at Google Play
0%iPhones, new release
0%Android, new release

The picture: the phone on the left shows what a person sees (the home screen, TestFlight, the store's page, the Shop app). Around it: your desk with app.json, EAS Build's yard, where each crate is a built binary and its seal the signature, the signing keys' vault, App Store Connect and the Play Console with their review booths, the phones out there (a block of windows: 100 iPhones on its left face, 100 Android phones on its right, gold for the newest release) and EAS Update's depot, whose truck never passes a booth. Review times vary; the model says hours to days, nothing more.

Step 4 · Every option at once, on one clock

Compare them all: Shipping

The app is out, and there are four kinds of change to ship. Each tile shows whether it can take the over-the-air shortcut, or needs a new build and the store's review.

Shipping: 0%
A wrong price on screen (JS code)eas updateroad OTA

Use it when JavaScript in the bundle: EAS Update can carry it

Skip it when Don't use OTA to change what the app is: the store's rules still apply

A model: the times are rough ranges (reviews take varying time). OTA reaches only builds with a matching runtime version, and the store's rules still apply to what you send. Press any tile to see it large above, with when it fits.

The road, station by station

StationiOSAndroid
identitybundle IDapplicationId
version / buildCFBundleShortVersionString / CFBundleVersionversionName / versionCode
signingcertificate + provisioning profile (Apple Developer Program)upload key, then Play App Signing
buildEAS Build or Xcode Archive → .ipaEAS Build or Gradle bundleRelease → .aab
testersTestFlightinternal testing track
releaseApp Review, phased releasePlay review, staged rollout

What can go over the air

EAS Update sends a new JavaScript bundle and its assets to builds with the same runtime version; by default the app downloads it and uses it from the next launch. Native code, the icon and Info.plist live in the signed binary, so they take the store road. And the store's rules apply to what you send either way.

In real code

app.json
{
  "expo": {
    "name": "Shop",
    "slug": "shop",
    "version": "1.4.0",
    "runtimeVersion": { "policy": "appVersion" },
    "ios": {
      "bundleIdentifier": "com.example.shop",
      "buildNumber": "43",
      "infoPlist": {
        "NSCameraUsageDescription": "Scan a product's barcode to find it in the shop."
      }
    },
    "android": {
      "package": "com.example.shop",
      "versionCode": 43,
      "permissions": ["android.permission.CAMERA"]
    }
  }
}
Run: goes at the root of an Expo project (checked: JSON that satisfies ExpoConfig from @expo/config-types, with tsc)It printed: valid JSON · tsc: it satisfies ExpoConfig from @expo/config-types 58.0.3

The identity, the version and the build numbers, the runtime version for updates, and the camera permission text. Held to ExpoConfig from @expo/config-types.

Common questions

What's the difference between the version and the build number?

The version (1.4.0) is what people see in the store. The build number (iOS's CFBundleVersion, Android's versionCode) is how the store tells builds apart, and it goes up with every upload. In eas.json, autoIncrement lets EAS raise it.

Do I need a Mac to ship an iOS app?

To build with Xcode yourself, yes. EAS Build does it in the cloud. Either way you need the Apple Developer Program (a yearly fee) to sign and upload.

What are TestFlight and internal testing?

Ways to let people try a build before release. TestFlight lets your team in App Store Connect try it without waiting for review; testers outside the team need Beta App Review first. Google Play has the internal testing track for the same job.

What can an over-the-air update ship?

Only JavaScript and the assets that travel with the bundle, and only to builds with the same runtime version. A library with native code, the icon or a permission text in Info.plist live in the binary: they need a new build.

Do over-the-air updates break store rules?

Sending new JavaScript to fix bugs or adjust what's there is normal. But the store's rules still apply to what you send: don't use it to turn the app into something else behind the review's back.

What is Play App Signing?

You sign the .aab with an upload key before sending it, and Google re-signs it with the app's key, which Google keeps, before it reaches people's phones. Lose the upload key and you can ask for a new one without losing the app's key.

Table: each station

Next lesson

Supply chain attacksLevel: Intermediate

Every package you install goes out in that build; next, how a poisoned version deep in the tree gets in, and what stops it.