expo-dev-client
此技能集为Expo项目提供AI代理能力,特别支持Expo开发客户端的使用,优化移动应用的开发、调试和测试流程,提升开发效率。
npx skills add expo/skills --skill expo-dev-clientBefore / After 效果对比
1 组当应用需要自定义原生代码时,开发者必须通过 `expo prebuild` 生成原生项目,然后在 Xcode 或 Android Studio 中构建和运行,这使得测试和调试流程复杂且耗时。
使用 EAS Build 创建开发客户端(Development Client),开发者可以直接在物理设备上测试包含自定义原生代码的 Expo 应用,无需每次都重新构建原生项目,极大地简化了开发和调试流程。
expo-dev-client
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:
-
Build the development client in the cloud
-
Automatically submit to App Store Connect
-
Send you an email when the build is ready in TestFlight
After receiving the TestFlight email:
-
Download the build from TestFlight on your device
-
Launch the app to see the expo-dev-client UI
-
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:
.ipafile -
Android:
.apkor.aabfile
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
Weekly Installs11.1KRepositoryexpo/skillsGitHub Stars1.5KFirst SeenJan 19, 2026Security AuditsGen Agent Trust HubPassSocketPassSnykPassInstalled onopencode8.1Kgithub-copilot8.1Kcodex7.8Kgemini-cli7.6Kcursor7.6Kclaude-code6.4K
用户评价 (0)
发表评价
暂无评价
统计数据
用户评分
为此 Skill 评分