AGENT SKILL

Expo 开发客户端构建分发

expo-dev-client

在本地或通过 TestFlight 构建并分发 Expo 开发客户端。

License 许可
MIT
最近更新
2026-09-02
Stars
★ 0
Forks
0

01 前言 Front Matter

name
expo-dev-client
license
MIT
version
1.0.0
description
Build and distribute Expo development clients locally or via TestFlight

02 资源文件 1

03 SKILL.md 正文

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.

Important: When Development Clients Are Needed

Only create development clients when your app requires custom native code. Most apps work fine in Expo Go.

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

Try Expo Go first with npx expo start. If everything works, you don't need a dev client.

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:

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:

# iOS (requires Xcode)
eas build -p ios --profile development --local

# Android
eas 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
eas build -p ios --profile development

# Android only
eas build -p android --profile development

# Both platforms
eas build --profile development

Checking Build Status

# List recent builds
eas build:list

# View build details
eas 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:

# Start Metro bundler
npx expo start --dev-client

# Scan QR code with dev client or enter URL manually

Troubleshooting

Build fails with signing errors:

eas credentials

Clear build cache:

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

Check EAS CLI version:

eas --version
eas update

04 同仓库更多 Skills

epiphanyapps
epiphanyapps/mapyourhealth

Claude 技能规范校验

validate-skills

依据 agentskills.io 规范和 Claude Code 最佳实践校验本仓库中的技能。通过 /validate-skills 命令使用。

AI 工程师插件与技能管理
★ 0
epiphanyapps
epiphanyapps/mapyourhealth

Expo DOM 组件跨端迁移

use-dom

使用 Expo DOM 组件在原生平台的 webview 中运行 Web 代码,并在 Web 端按原样运行。用于以增量方式将 Web 代码迁移到原生。

软件开发工程师移动应用开发
★ 0
epiphanyapps
epiphanyapps/mapyourhealth

React Native 版本升级

upgrading-react-native

React Native 升级工作流,涵盖更新的模板、依赖和常见陷阱。用于将 React Native 应用迁移到更新的版本。

软件开发工程师依赖升级与管理
★ 0
epiphanyapps
epiphanyapps/mapyourhealth

upgrading-expo

Guidelines for upgrading Expo SDK versions and fixing dependency issues

★ 0
epiphanyapps
epiphanyapps/mapyourhealth

React Native 性能优化

react-native-best-practices

提供 React Native 性能优化指南,涵盖 FPS、TTI、bundle 体积、内存泄漏、重复渲染和动画。适用于涉及 Hermes 优化、JS 线程阻塞、bridge 开销、FlashList、原生模块或调试卡顿与掉帧的任务。

软件开发工程师性能剖析与优化
★ 0
epiphanyapps
epiphanyapps/mapyourhealth

网络请求与数据获取

native-data-fetching

用于实现或调试任何网络请求、API 调用或数据获取。涵盖 fetch API、axios、React Query、SWR、错误处理、缓存策略、离线支持。

软件开发工程师前端开发与界面实现
★ 0