Expo EAS Build vs Local Build and Flutter CI

· 5 min read

Every cross-platform app eventually needs a repeatable way to turn source code into a signed .ipa and .aab. Expo answers that with a hosted service, EAS Build, plus a local mode. Flutter answers it with plain commands and whatever CI you choose.

This post compares three options: EAS Build in the cloud, eas build --local, and a Flutter CI pipeline. It is part of our guide to building a Flutter app with Claude Code, but the Expo half stands on its own.

EAS Build in the cloud

Expo describes EAS Build as “a hosted service for building app binaries for your Expo and React Native projects.” The parts that matter in practice:

  • Signing is handled for you. It can generate and manage your Android keystore and your iOS distribution certificate and provisioning profiles. You can also bring your own.
  • Both platforms in one command. eas build --platform all produces binaries for Android and iOS.
  • No Mac needed for iOS. Android builds run on Linux runners in Google Cloud and iOS builds on macOS runners in Expo’s cloud.
  • Internal distribution. Setting "distribution": "internal" in a build profile produces APKs on Android or ad hoc builds on iOS that testers install from a URL.

A minimal eas.json with a preview and a production profile looks like this:

{
  "build": {
    "preview": {
      "distribution": "internal"
    },
    "production": {}
  }
}

The costs are queue time and plan limits. Expo’s pricing page lists a free tier with a capped number of builds and low queue priority, and paid plans with higher priority and concurrency. Check the current numbers before you rely on the free tier for a release week.

Expo also lists one case EAS Build does not suit: “Debugging native code locally.”

eas build —local

The local mode runs the same build process on your own machine:

eas build --platform android --local
eas build --platform ios --local

Expo gives two reasons to use it. First, debugging: reproduce a failure from Expo’s servers when the logs do not show the cause. Second, company policy: if your organization restricts third-party CI, the build runs on your own infrastructure, and Expo is contacted only to confirm the project exists and, optionally, to download managed credentials.

The limitations are real, and they are listed plainly in the docs:

  • “You can only build for a specific platform (option all is disabled).”
  • The node, yarn, fastlane, cocoapods, ndk and image fields in eas.json are ignored, so you get whatever versions you installed.
  • Caching is not supported.
  • Secret environment variables stored with Expo are not available, so you set them locally.
  • You install Node, your package manager, fastlane, CocoaPods (for iOS) and the Android SDK and NDK yourself.
  • Local builds run on macOS and Linux. Windows is only possible through WSL, which Expo does not officially support.

You still need to be authenticated, with eas login or an EXPO_TOKEN.

In short: local builds are a debugging and compliance tool, not a cheaper copy of the cloud. For iOS you still need a Mac.

The Flutter way: commands plus CI

Flutter has no hosted build service. You build with two commands:

flutter build appbundle
flutter build ipa

Then you automate. Flutter’s continuous delivery docs group the options:

  • All-in-one services with Flutter support: Codemagic, Bitrise and Appcircle.
  • fastlane on general CI: GitHub Actions, GitLab, CircleCI, Cirrus and Travis.
  • Xcode Cloud for the iOS side, which needs Apple Developer Program membership.

Flutter recommends testing locally first: “It’s recommended that you test the build and deployment process locally before migrating to a cloud-based system.” A typical iOS fastlane lane from the docs reuses the archive Flutter already built:

build_app(
  skip_build_archive: true,
  archive_path: "../build/ios/archive/Runner.xcarchive",
)
upload_to_testflight

For Xcode Cloud, Flutter documents a ios/ci_scripts/ci_post_clone.sh script that clones Flutter, runs flutter precache --ios and flutter pub get, then installs CocoaPods and runs pod install. One gotcha from the docs: Xcode Cloud starts build numbers at 1, so for an existing app you must set the Next Build Number yourself.

Secrets and signing on CI

This is where most DIY pipelines go wrong. Flutter’s docs say cloud instances are “ephemeral and untrusted,” so do not leave credentials on them. Their recommendations:

  • Store the Play service account JSON in an encrypted CI variable and pass it with json_key_data: ENV['...'] instead of a file.
  • Base64 encode the upload keystore and decode it during the install phase.
  • Use fastlane match to sync iOS certificates.
  • “Take precaution not to re-echo those variable values back onto the console in your test scripts.”

If you lose the Android upload key along the way, Google can reset it when you use Play App Signing. See how to reset a lost Google Play upload key.

EAS takes most of this off your plate by managing credentials itself, which is a real reason people choose it.

Side by side

EAS Build (cloud) eas build —local Flutter + CI
Runs on Expo’s Linux and macOS runners Your macOS or Linux machine Your CI provider or Xcode Cloud
iOS without a Mac Yes No Yes, with a hosted macOS CI
Both platforms in one command Yes No Depends on your pipeline
Credential management Built in Optional download from Expo fastlane match, encrypted variables
Tool versions Set in eas.json Whatever you installed Whatever your CI image has
Caching Yes No Depends on CI
Vendor lock-in Expo services Expo CLI Low

Which to choose

  • Expo app, small team, no Mac: EAS Build in the cloud. Use --local only when a cloud build fails and you need to see why.
  • Expo app with strict security rules: eas build --local on your own runners.
  • Flutter app: Start with local flutter build commands, then add fastlane on GitHub Actions or a Flutter-aware service. Xcode Cloud works well if you only need iOS automation.

Whatever you pick, use separate build configs for development and production so test builds never ship. For Flutter that means flavors, covered in Flutter flavors for dev and prod. For the iOS archive step itself, see flutter build ipa explained, and for the wider choice between the two frameworks, Expo vs Flutter.

When a build does fail, read the first error, not the last one. Fixing Flutter build errors with Claude Code walks through the common ones. MobileKit’s build and launch skills script the Flutter side of this pipeline, but the steps above work with any setup.

Sources read on the day this post was written: Expo: EAS Build introduction, Expo: local builds, Expo pricing and Flutter: continuous delivery.

Questions

What is the difference between EAS Build and eas build --local?

EAS Build runs your build on Expo's hosted Linux and macOS runners. With --local, the same build process runs on your own macOS or Linux machine, and you must install Node, fastlane, CocoaPods and the Android SDK and NDK yourself.

Can a local EAS build target both platforms at once?

No. Expo's docs say local builds can only target a specific platform, and the option all is disabled. Run one command for android and one for ios.

Does Flutter have its own hosted build service like EAS?

No. Flutter's deployment docs point to CI services with Flutter support such as Codemagic, Bitrise and Appcircle, to fastlane on general CI like GitHub Actions, and to Apple's Xcode Cloud for iOS.

Try it on your next idea

One payment, every update to this major version, and a refund window if it is not for you. Refund policy.