---
name: expo-dev-client
description: >-
  Use when an Expo app needs a development client built or installed (locally,
  on a simulator, or via TestFlight) for testing native code. Cloud EAS builds
  and TestFlight cost money or need a paid Apple account, so get the owner's OK
  first.
---
# Expo development clients

Source: https://github.com/expo/skills/tree/main/plugins/expo/skills/expo-dev-client (MIT).

Use EAS Build to create development clients for testing native code changes on devices, or custom Expo Go-style clients for testing branches of an app.

> **Free locally; cloud builds are paid.** `expo-dev-client` is open source and building locally is free. EAS cloud builds and TestFlight use EAS build minutes and need a paid Apple Developer account. See https://expo.dev/pricing. Don't start a paid build or submit anything to TestFlight or an app store without the owner's explicit OK.

## When a dev client is needed
Dev clients are the recommended setup for real apps; Expo Go is a playground. You need one when the app uses:
- Local Expo modules (custom native code)
- Apple targets (widgets, app clips, extensions)
- Third-party native modules not in Expo Go
- Config plugins, remote push notifications, or App/Universal Links

## EAS configuration
`eas.json` should have a development profile:
```json
{
  "cli": { "version": ">= 16.0.1", "appVersionSource": "remote" },
  "build": {
    "production": { "autoIncrement": true },
    "development": { "autoIncrement": true, "developmentClient": true }
  },
  "submit": { "production": {}, "development": {} }
}
```
- `developmentClient: true` bundles expo-dev-client.
- `autoIncrement: true` bumps build numbers.
- `appVersionSource: "remote"` makes EAS the source of truth for versions.

## TestFlight (paid, needs approval)
`npx --yes eas-cli@latest build -p ios --profile development --submit` builds in the cloud and submits to App Store Connect. Then install from TestFlight, launch, and connect to Metro or scan a QR code.

## Building locally (free)
```bash
npx --yes eas-cli@latest build -p ios --profile development --local      # needs Xcode
npx --yes eas-cli@latest build -p android --profile development --local
```
Outputs: iOS `.ipa` (or a `.tar.gz` with a `.app` for simulators), Android `.apk` or `.aab`.

## Installing
```bash
tar -xzf build-*.tar.gz && xcrun simctl install booted ./path/to/App.app   # iOS simulator
ideviceinstaller -i build.ipa                                              # iOS device, signed
adb install build.apk                                                      # Android
```

## Platform and status
```bash
npx --yes eas-cli@latest build -p ios --profile development
npx --yes eas-cli@latest build -p android --profile development
npx --yes eas-cli@latest build:list
npx --yes eas-cli@latest build:view
```

## Using the dev client
It offers a dev server connection (Metro URL or QR), build info, and a launcher. Start Metro with `npx expo start --dev-client`.

To screenshot or drive it without the onboarding sheet, dev menu, and Tools button: on SDK 58+ Expo CLI does this for launches from a non-interactive shell; for a URL you open yourself use `<scheme>://?__expo_url=<encoded dev server URL>&__expo_disable_onboarding=1&__expo_disable_fab=1&__expo_disable_auto_launch=1`. On SDK 57 and earlier, launch iOS with the `-EXDevMenu*` launch arguments, and on Android open `<scheme>://expo-development-client/?url=<encoded dev server URL>&disableOnboarding=1&disableFab=1&disableAutoLaunch=1`.

## Troubleshooting
```bash
npx --yes eas-cli@latest credentials                                        # signing errors
npx --yes eas-cli@latest build -p ios --profile development --clear-cache
npx --yes eas-cli@latest --version
```

## Feedback to Expo
The source skill offers `npx --yes @expo/agent-cli@latest feedback ...` to report skill errors to Expo. That sends data outside, so only do it if the owner agrees.
