使用 EAS Workflows 创建开发版本
了解如何使用 EAS Workflows 创建开发版本。
For the complete documentation index, see llms.txt. Use this file to discover all available pages.
开发版本 是包含 Expo 开发者工具的项目专用构建。这类构建将所有本地依赖包含在项目中,使你能够在模拟器、模拟器或实体设备上运行类似生产环境的项目构建。此工作流程允许你为每个平台以及实体设备、Android 模拟器和 iOS 模拟器创建开发版本,你的团队可以通过 eas build:dev 进行访问。

学习如何使用 EAS 工作流自动化为 Android、iOS 设备和模拟器构建开发版本。
开始使用
🌐 Get started
2 requirements
2 requirements
1.
要开始,你需要配置你的项目和设备以构建和运行开发版本。通过以下指南了解如何为开发版本设置你的环境:
准备好你的项目以进行开发构建。
准备好你的项目以进行开发构建。
准备好你的项目以进行开发构建。
准备好你的项目以进行开发构建。
2.
在配置好你的项目和设备后,将以下构建配置添加到你的 eas.json 文件中。
{ "build": { "development": { "developmentClient": true, "distribution": "internal" }, "development-simulator": { "developmentClient": true, "distribution": "internal", "ios": { "simulator": true } } } }
以下工作流程为每个平台以及物理设备、Android 模拟器和 iOS 模拟器创建构建。它们将并行运行。
🌐 The following workflow creates a build for each platform and for both physical devices, Android emulators, and iOS simulators. They all will run in parallel.
name: Create development builds jobs: android_development_build: name: Build Android type: build params: platform: android profile: development ios_device_development_build: name: Build iOS device type: build params: platform: ios profile: development ios_simulator_development_build: name: Build iOS simulator type: build params: platform: ios profile: development-simulator
使用以下命令运行上述工作流程:
🌐 Run the above workflow with:
- eas workflow:run .eas/workflows/create-development-builds.yml