Expo and release workflow
Expo EAS Build Guide: iOS & Android Builds
Expo EAS Build guide for production React Native apps, covering profiles, credentials, native modules, CI, and app store releases.
EAS Build is Expo's hosted service that compiles your React Native app into signed iOS (.ipa) and Android (.aab or .apk) binaries on managed macOS and Linux machines, driven by build profiles in eas.json. You run eas build --platform all --profile production, EAS handles signing credentials, native compilation and artifact storage, and eas submit or --auto-submit pushes the result to App Store Connect and Google Play. This guide covers how I set up eas build for production apps: profiles, credentials, environment variables, caching, local builds, EAS Update and the failures that actually block releases.
How EAS Build works under the hood
When you run eas build, the CLI packs your project (respecting .gitignore and an optional .easignore), uploads it, and a fresh build worker does what you would do on a release machine: install JavaScript dependencies, run npx expo prebuild if you use Continuous Native Generation (no committed ios/ and android/ folders), install CocoaPods, run Gradle or Xcode, sign the binary and upload the artifact.
Planning a mobile app or stuck on one? Message me on WhatsApp or see how I work with app teams.
Two things follow from that model, and both matter in production:
- The worker only sees what you upload. Untracked files, a local
.env, or agoogle-services.jsonyou never committed will not exist on the server. Treat the build worker like a clean CI machine. - Native config comes from
app.json/app.config.tsand config plugins when you use CNG. If you editios/by hand and do not commit it, the change disappears on the next build.
Install the CLI and link the project once:
npm install -g eas-cli
eas login
eas build:configure
eas build:configure creates eas.json and writes the EAS project ID into your app config.
eas.json build profiles: development, preview, production
Profiles are named build recipes. Three profiles cover almost every team I have worked with. This is the eas.json I start from on new Expo apps:
{
"cli": {
"version": ">= 16.0.0",
"appVersionSource": "remote"
},
"build": {
"base": {
"node": "22.14.0"
},
"development": {
"extends": "base",
"developmentClient": true,
"distribution": "internal",
"environment": "development",
"channel": "development",
"ios": { "simulator": true }
},
"preview": {
"extends": "base",
"distribution": "internal",
"environment": "preview",
"channel": "preview",
"android": { "buildType": "apk" }
},
"production": {
"extends": "base",
"environment": "production",
"channel": "production",
"autoIncrement": true
}
},
"submit": {
"production": {
"ios": { "ascAppId": "1234567890" },
"android": {
"serviceAccountKeyPath": "./secrets/play-service-account.json",
"track": "internal"
}
}
}
}
What each choice buys you:
developmentClient: truebuilds a development build that includesexpo-dev-client, so it loads JavaScript from your local Metro server. It is never meant for store submission.distribution: "internal"produces installable artifacts for testers: ad hoc iOS builds (devices registered witheas device:create) and APKs for Android. Preview builds are what QA and stakeholders install.appVersionSource: "remote"withautoIncrement: truelets EAS ownbuildNumberandversionCode. This removes the classic "version code 41 has already been used" rejection when two people build on the same day. You still control the user-facingversionin app config.environmenttells EAS which set of EAS environment variables to load for that profile.channelstamps the binary with an EAS Update channel, so over-the-air updates reach the right builds.extendskeeps shared settings in one place. Pinningnodeavoids a surprise when the default image moves to a newer Node release.
Run a profile with:
eas build --platform ios --profile preview
eas build --platform all --profile production --auto-submit
Development builds vs Expo Go
Expo Go is a prebuilt app with a fixed set of native modules. It is great for the first afternoon of a prototype and a poor fit for anything you plan to ship. The moment you add a library with custom native code (payments, Bluetooth, a video SDK, react-native-mmkv, your own TurboModule), Expo Go cannot load it.
A development build is your own app binary with the developer menu included. You install it once on a device or simulator and then iterate on JavaScript with Fast Refresh exactly like Expo Go. In apps I have shipped, the rule is simple: from the first native dependency onward, every developer uses a development build, and Expo Go is no longer part of the workflow. Rebuild the development client only when native code or config plugins change; JavaScript changes never need a rebuild.
Credentials management
EAS can generate and store signing credentials for you, which is the right default for most teams:
- iOS: EAS creates or reuses your distribution certificate and provisioning profiles via your Apple Developer account. An App Store Connect API key is better than signing in with a personal Apple ID, because it works without two-factor prompts in CI.
- Android: EAS generates an upload keystore on the first build. With Play App Signing, Google holds the app signing key and EAS holds the upload key.
Manage everything with eas credentials. Three practices save a lot of pain:
- Download a backup of the Android keystore from
eas credentialsand store it in your password manager. If you migrate off EAS later, you need it. - Use
credentials.jsonwith local credentials only if a security policy forbids storing keys with a third party. It is supported, but you now own rotation and distribution. - Keep one Apple team per project. Building the same bundle ID from two Apple teams is a frequent cause of provisioning profile errors.
Apple's side of this is documented in the App Store Connect API docs, and the mechanics of Play upload keys are worth understanding before your first Android release.
Environment variables and secrets on EAS
EAS environment variables replaced the older eas secret workflow. Variables live on expo.dev, belong to the development, preview or production environment, and have a visibility level:
| Visibility | Readable in dashboard and CLI | Shown in build logs | Typical use |
|---|---|---|---|
| Plain text | Yes | Yes | Public API URLs, feature flags |
| Sensitive | Yes (hidden by default) | Masked | Third-party keys you may need to inspect |
| Secret | No | Masked | Tokens used only at build time, such as a Sentry auth token |
Create and pull them with the CLI:
eas env:set --name EXPO_PUBLIC_API_URL --value https://api.example.com \
--environment production --visibility plaintext
eas env:set --name SENTRY_AUTH_TOKEN --value "$SENTRY_AUTH_TOKEN" \
--environment production --visibility secret
eas env:pull --environment development
The critical rule: anything prefixed with EXPO_PUBLIC_ is inlined into your JavaScript bundle, and everything in your bundle is readable by anyone who downloads the app. "Secret" visibility protects the value on EAS servers, not inside a shipped binary. Private API keys belong on your backend. I cover this in more detail in my notes on React Native app security, and OWASP's Mobile Application Security guidance is the reference I point security reviewers to.
Files such as google-services.json can be uploaded as file-type variables and referenced from app.config.ts, which keeps them out of git:
export default {
expo: {
android: {
googleServicesFile: process.env.GOOGLE_SERVICES_JSON ?? "./google-services.json",
},
},
};
Build caching and build speed
EAS already runs cache servers for npm/Yarn packages, Maven and CocoaPods, so dependency downloads are fast by default. Beyond that you have two levers:
cache.pathsandcache.keyin a profile let you persist extra paths between builds. Changecache.keyto invalidate.- ccache for C++ compilation is opt-in through the
EAS_USE_CACHEenvironment variable. With the New Architecture and heavy C++ libraries, native compilation is where most build minutes go, so this is worth testing on Android.
Other speed wins that are not caching: keep ios/ and android/ out of git if you use CNG, delete unused native dependencies (each adds compile time), and use a larger resourceClass on paid plans only for profiles where wait time costs you more than the credits.
Local builds with eas build --local
eas build --local runs the same build steps on your machine instead of the cloud:
eas build --platform android --profile production --local
It needs the full native toolchain: macOS with Xcode for iOS, and macOS or Linux with the Android SDK and Java for Android. Windows is not supported for local builds. I use it for three things: debugging a failure that only reproduces in the EAS pipeline, building on a self-hosted CI runner, and producing an artifact when the build queue is busy before a deadline. It does not consume EAS build credits, but you lose the clean environment, so "works locally, fails on EAS" can also run the other way.
EAS Submit and auto-submit
eas submit uploads an existing build to the stores; --auto-submit chains it after a successful build using the matching submit profile:
eas submit --platform ios --latest
eas build --platform all --profile production --auto-submit
For Google Play, the very first upload of a new app must be done manually in the Play Console; after that, a service account key (stored as a file variable or kept out of git) lets EAS upload to the internal, alpha, beta or production track. Start on internal and promote in the console, so a bad build never goes straight to users. On iOS, a submitted build lands in TestFlight; App Review still happens in App Store Connect.
EAS Update: channels and runtimeVersion
EAS Update ships JavaScript and asset changes over the air without a store release. The model has three parts:
- Channel: baked into the binary at build time (the
channelfield above). - Branch: an ordered list of updates. By default a channel points at the branch of the same name.
- Runtime version: a compatibility key. An update is only delivered to builds with the same
runtimeVersion.
{
"expo": {
"runtimeVersion": { "policy": "fingerprint" },
"updates": { "url": "https://u.expo.dev/your-project-id" }
}
}
eas update --channel production --message "Fix checkout total rounding"
I recommend the fingerprint policy for most apps: it hashes everything that affects native code, so adding a native module automatically produces a new runtime version and old binaries never receive JavaScript that calls native code they do not have. The appVersion policy works too, but only if your team reliably bumps the version on every native change, and in practice someone forgets. Also remember Apple's rules: OTA updates are for fixes and improvements, not for changing the app's core purpose after review. Release flow beyond EAS is covered in my React Native deployment guide.
Cost and free tier considerations
Expo offers a free plan with a monthly allowance of low-priority builds and a capped number of EAS Update users, then paid plans that add priority queues, larger workers, more update users and pay-as-you-go build credits. Exact limits and prices change, so check the current pricing page before you budget. What drives cost in practice:
- iOS builds cost more than Android builds and larger resource classes cost more than medium.
- Rebuilding development clients too often burns credits. Fingerprinting helps you rebuild only when native code changed.
- Monthly active update users drive EAS Update cost for consumer apps with large install bases.
- Local builds and self-hosted runners are free of EAS credits but cost engineer time and machine maintenance.
For a typical startup app with a weekly release cadence, the paid starter tier is usually cheaper than one engineer hour per week spent babysitting a Mac build machine.
Common EAS build failures and fixes
| Symptom | Likely cause | Fix |
|---|---|---|
npm ci fails: lockfile out of sync |
package.json changed without reinstalling |
Reinstall locally, commit the lockfile |
Duplicate native module or pod install conflict |
Two versions of a library, often via a monorepo | Run npx expo install --check and npx expo-doctor, dedupe |
| Provisioning profile does not include entitlement | Capability added (Push, Sign in with Apple) after profile was created | Enable it in config, rerun eas credentials to regenerate the profile |
Missing google-services.json |
File is gitignored, so not uploaded | Upload as an EAS file variable and reference it in app config |
| Version code already used | Local and EAS version counters diverged | appVersionSource: "remote" plus autoIncrement |
| Gradle out of memory | Large native dependency graph | Raise org.gradle.jvmargs via a config plugin, or a larger resource class |
| App crashes on launch only in production | Env var missing in production environment, or a dev-only import |
Compare eas env:list across environments, test a preview build |
| Update not received | Channel or runtimeVersion mismatch | Check the build's channel and runtime on expo.dev before publishing |
When a build fails, read the first error in the log rather than the last one; Xcode and Gradle often print dozens of follow-on errors. If you want a second pair of eyes on a stuck release pipeline, I take on Expo app development and release engineering work, or you can hire me as a React Native developer for a fixed-scope setup.
FAQ
Is EAS Build required to ship an Expo app?
No. You can run npx expo prebuild and build with Xcode and Gradle yourself, or use eas build --local on your own machines. EAS Build is the convenient default because it handles signing, clean environments and artifact storage for you.
What is the difference between eas build and eas update?
eas build produces a new native binary, which is required whenever native code, permissions or config plugins change. eas update publishes only JavaScript and assets to existing builds with a matching runtime version, so it skips store review for fixes.
Can I use EAS Build with a bare React Native project?
Yes. If ios/ and android/ are committed, EAS builds them as they are and skips prebuild. You still get credentials management, eas submit and EAS Update, as long as expo-updates is installed.
Where should API keys go in an Expo app?
Public, client-safe values can be EXPO_PUBLIC_ variables, which end up in the bundle. Anything that grants privileged access belongs on a backend you control. Secret EAS variables are for build-time tools, not for values your app reads at runtime.
Related pages
Need help with this?
If this topic maps to a product you are building or fixing, I can help with React Native architecture, Expo setup, native modules, performance, debugging, testing, and app store release work.
Email Numan or start with React Native mobile app development services.
