Expo Dev Client

作者 expocd752143d19eMIT2.6K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库昨天更新

Framework (OSS). Build 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.

仅含说明DevOps & Cloud
AI 生成的概览

指导在本地或通过 EAS Build 与 TestFlight 构建和分发 Expo 开发客户端,用于内部测试。

功能
该技能说明如何创建 Expo 开发客户端,以便在真机上测试原生代码改动,并解释何时需要开发客户端而非 Expo Go。它提供开发配置的 EAS 设置、云端与本地 iOS/Android 构建命令、模拟器和真机安装步骤,以及签名和缓存问题的排查方法。
适用场景
当应用使用本地 Expo 模块、Apple 目标、第三方原生模块、配置插件,或需要测试推送通知与深度链接时使用。它面向内部测试构建,而非生产商店发布。
运行要求
需要 EAS CLI 和带有 eas.json 的 Expo 项目;本地 iOS 构建需要 Xcode,真机或 TestFlight 分发需要付费 Apple Developer 账号和 EAS 构建额度。该技能不包含脚本,只有说明文档。

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:

json
{  "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:

bash
eas 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:

bash
# iOS (requires Xcode)eas build -p ios --profile development --local
# Androideas 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:

bash
# Find the .app in the .tar.gz outputtar -xzf build-*.tar.gzxcrun simctl install booted ./path/to/App.app

Install iOS build on device (requires signing):

bash
# Use Xcode Devices window or ideviceinstallerideviceinstaller -i build.ipa

Install Android build:

bash
adb install build.apk

Building for Specific Platform

bash
# iOS onlyeas build -p ios --profile development
# Android onlyeas build -p android --profile development
# Both platformseas build --profile development

Checking Build Status

bash
# List recent buildseas build:list
# View build detailseas 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:

bash
# Start Metro bundlernpx expo start --dev-client
# Scan QR code with dev client or enter URL manually

Troubleshooting

Build fails with signing errors:

bash
eas credentials

Clear build cache:

bash
eas build -p ios --profile development --clear-cache

Check EAS CLI version:

bash
eas --versioneas update

Submitting Feedback

If you encounter errors, misleading or outdated information in this skill, report it so Expo can improve:

bash
npx --yes submit-expo-feedback@latest --category skills --subject "expo-dev-client" "<actionable feedback>"

Only submit when you have something specific and actionable to report. Include as much relevant context as possible. If an AI agent repeatedly failed or the user had to take over an Expo task, load the expo-skill-feedback skill and follow its eval-candidate flow instead of reusing the command above.

来源与署名

来源:expo/skills位于plugins/expo/skills/expo-dev-client提交cd75214

许可证: MIT

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架