@expo/expo-dev-client

Build and distribute Expo development clients locally or via TestFlight

View in AI SkillSafe app
Scanned · no findings
49 stars
SKILL.md
nameexpo-dev-client
descriptionBuild and distribute Expo development clients locally or via TestFlight for internal testing. For production TestFlight releases and store submission, use the eas-app-stores skill.
licenseMIT

Use EAS Build to create development clients for testing native code changes on physical devices. Use this for creating custom Expo Go clients for testing branches of your app.

Free locally; cloud builds are paid. expo-dev-client itself is open source and building locally is free. Building or distributing via EAS Build/TestFlight uses your EAS plan's build minutes and needs a paid Apple Developer account for device/TestFlight distribution. See https://expo.dev/pricing.

Important: When Development Clients Are Needed

Development clients are the recommended setup for any real or production app. Expo Go is a playground for learning and quick experiments with the native libraries it bundles; most apps outgrow it and move to a development client. See Expo Go vs. development builds for the full reasoning.

You need a dev client ONLY when using:

  • Local Expo modules (custom native code)
  • Apple targets (widgets, app clips, extensions)
  • Third-party native modules not in Expo Go
  • Config plugins, or testing remote push notifications and App/Universal Links

EAS Configuration

Ensure eas.json has a development profile:

{
  "cli": {
    "version": ">= 16.0.1",
    "appVersionSource": "remote"
  },
  "build": {
    "production": {
      "autoIncrement": true
    },
    "development": {
      "autoIncrement": true,
      "developmentClient": true
    }
  },
  "submit": {
    "production": {},
    "development": {}
  }
}

Key settings:

  • developmentClient: true - Bundles expo-dev-client for development builds
  • autoIncrement: true - Automatically increments build numbers
  • appVersionSource: "remote" - Uses EAS as the source of truth for version numbers

Building for TestFlight

Build iOS dev client and submit to TestFlight in one command:

npx --yes eas-cli@latest build -p ios --profile development --submit

This will:

  1. Build the development client in the cloud
  2. Automatically submit to App Store Connect
  3. Send you an email when the build is ready in TestFlight

After receiving the TestFlight email:

  1. Download the build from TestFlight on your device
  2. Launch the app to see the expo-dev-client UI
  3. Connect to your local Metro bundler or scan a QR code

Building Locally

Build a development client on your machine:

# iOS (requires Xcode)
npx --yes eas-cli@latest build -p ios --profile development --local

# Android
npx --yes eas-cli@latest build -p android --profile development --local

Local builds output:

  • iOS: .ipa file
  • Android: .apk or .aab file

Installing Local Builds

Install iOS build on simulator:

# Find the .app in the .tar.gz output
tar -xzf build-*.tar.gz
xcrun simctl install booted ./path/to/App.app

Install iOS build on device (requires signing):

# Use Xcode Devices window or ideviceinstaller
ideviceinstaller -i build.ipa

Install Android build:

adb install build.apk

Building for Specific Platform

# iOS only
npx --yes eas-cli@latest build -p ios --profile development

# Android only
npx --yes eas-cli@latest build -p android --profile development

# Both platforms
npx --yes eas-cli@latest build --profile development

Checking Build Status

# List recent builds
npx --yes eas-cli@latest build:list

# View build details
npx --yes eas-cli@latest build:view

Using the Dev Client

Once installed, the dev client provides:

  • Development server connection - Enter your Metro bundler URL or scan QR
  • Build information - View native build details
  • Launcher UI - Switch between development servers

Connect to local development:

# Simulator or emulator: start the dev server and open the dev client (or --android; add --device <serial> for an Android phone)
npx --yes @expo/agent-cli@latest dev --ios --dev-client --detach --wait-ready

# Physical iPhone: start the dev server, then scan the QR code with the dev client
npx --yes @expo/agent-cli@latest start --dev-client

If no dev client is installed, dev builds one on this machine. If this machine cannot build, dev only describes an EAS build. It runs one only with --eas, which uses EAS credits. Run dev --ios --dev-client --plan first, with no dev server running, to see what it will do.

To open a route in the running dev client, run npx --yes @expo/agent-cli@latest navigate /<route>.

When you launch the dev client yourself to screenshot or drive it, skip the onboarding sheet, the dev menu at launch, and the Tools button. On SDK 58+, Expo CLI does this for launches it starts from a non-interactive shell, and navigate adds the flags to the URL it opens. Use navigate in place of a URL you build yourself. On SDK 57 and earlier, launch the iOS app with the -EXDevMenu* launch arguments, and on Android open <scheme>://expo-development-client/?url=<encoded dev server URL>&disableOnboarding=1&disableFab=1&disableAutoLaunch=1. See ../expo-overview/references/launch-without-dev-menu.md for the exact commands.

Troubleshooting

Build fails with signing errors:

npx --yes eas-cli@latest credentials

Clear build cache:

npx --yes eas-cli@latest build -p ios --profile development --clear-cache

Check EAS CLI version:

npx --yes eas-cli@latest --version

Submitting Feedback

If this skill has an error, or misleading or outdated information, tell the user and offer to report it to Expo. A report is optional, and the user decides. Do not send a report before the user agrees. The feedback command of the agent CLI sends a report. Its --help lists the categories (skills with the subject "expo-dev-client", agent-cli for a problem with the agent CLI, evals when an agent repeatedly fails at an Expo task) and the data that a report sends. Show the user the message, and tell the user that the report also carries project and environment details. If you cannot ask the user, put the command with your message in your final summary, so the user can send it. Do not include secrets or personal data.

Embed badges

Add these to your README to show the skill's verification status.

SkillSafe verified badge
Verified badge
[![SkillSafe verified badge](https://api.skillsafe.ai/v1/badge/@expo/expo-dev-client/verified)](https://skillsafe.ai/skill/@expo/expo-dev-client/)
Installs badge
Installs badge
[![Installs badge](https://api.skillsafe.ai/v1/badge/@expo/expo-dev-client/installs)](https://skillsafe.ai/skill/@expo/expo-dev-client/)
Scan badge
Scan badge
[![Scan badge](https://api.skillsafe.ai/v1/badge/@expo/expo-dev-client/scan)](https://skillsafe.ai/skill/@expo/expo-dev-client/)
Eval pass rate badge
Eval pass rate
[![Eval pass rate badge](https://api.skillsafe.ai/v1/badge/@expo/expo-dev-client/eval)](https://skillsafe.ai/skill/@expo/expo-dev-client/)