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 從公開儲存庫中收錄這些內容。

檢舉或申請下架