expo-dev-client by expo/skills
npx skills add https://github.com/expo/skills --skill expo-dev-client使用 EAS Build 为物理设备测试原生代码变更创建开发客户端。这适用于为测试应用分支创建自定义 Expo Go 客户端。
仅当您的应用需要自定义原生代码时才创建开发客户端。 大多数应用在 Expo Go 中运行良好。
仅在以下情况需要开发客户端:
首先尝试使用 Expo Go,运行 npx expo start。如果一切正常,则不需要开发客户端。
确保 eas.json 包含开发配置文件:
{
"cli": {
"version": ">= 16.0.1",
"appVersionSource": "remote"
},
"build": {
"production": {
"autoIncrement": true
},
"development": {
"autoIncrement": true,
"developmentClient": true
}
},
"submit": {
"production": {},
"development": {}
}
}
关键设置:
developmentClient: true - 为开发构建打包 expo-dev-client广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
autoIncrement: trueappVersionSource: "remote" - 使用 EAS 作为版本号的唯一来源使用一个命令构建 iOS 开发客户端并提交到 TestFlight:
eas build -p ios --profile development --submit
这将:
收到 TestFlight 电子邮件后:
在您的机器上构建开发客户端:
# iOS(需要 Xcode)
eas build -p ios --profile development --local
# Android
eas build -p android --profile development --local
本地构建输出:
.ipa 文件.apk 或 .aab 文件在模拟器上安装 iOS 构建:
# 在 .tar.gz 输出中找到 .app 文件
tar -xzf build-*.tar.gz
xcrun simctl install booted ./path/to/App.app
在设备上安装 iOS 构建(需要签名):
# 使用 Xcode 设备窗口或 ideviceinstaller
ideviceinstaller -i build.ipa
安装 Android 构建:
adb install build.apk
# 仅 iOS
eas build -p ios --profile development
# 仅 Android
eas build -p android --profile development
# 两个平台
eas build --profile development
# 列出最近的构建
eas build:list
# 查看构建详情
eas build:view
安装后,开发客户端提供:
连接到本地开发:
# 启动 Metro 打包器
npx expo start --dev-client
# 使用开发客户端扫描二维码或手动输入 URL
构建因签名错误失败:
eas credentials
清除构建缓存:
eas build -p ios --profile development --clear-cache
检查 EAS CLI 版本:
eas --version
eas update
每周安装量
12.9K
代码仓库
GitHub 星标数
1.5K
首次出现
2026年1月19日
安全审计
安装于
github-copilot9.8K
opencode9.8K
codex9.5K
cursor9.3K
gemini-cli9.3K
amp7.8K
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.
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:
Try Expo Go first with npx expo start. If everything works, you don't need a dev client.
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 buildsautoIncrement: true - Automatically increments build numbersappVersionSource: "remote" - Uses EAS as the source of truth for version numbersBuild iOS dev client and submit to TestFlight in one command:
eas build -p ios --profile development --submit
This will:
After receiving the TestFlight email:
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:
.ipa file.apk or .aab fileInstall 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
# iOS only
eas build -p ios --profile development
# Android only
eas build -p android --profile development
# Both platforms
eas build --profile development
# List recent builds
eas build:list
# View build details
eas build:view
Once installed, the dev client provides:
Connect to local development:
# Start Metro bundler
npx expo start --dev-client
# Scan QR code with dev client or enter URL manually
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
Weekly Installs
12.9K
Repository
GitHub Stars
1.5K
First Seen
Jan 19, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
github-copilot9.8K
opencode9.8K
codex9.5K
cursor9.3K
gemini-cli9.3K
amp7.8K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装