This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.

使用 EAS Workflows 创建开发版本

了解如何使用 EAS Workflows 创建开发版本。


开发版本 是包含 Expo 开发者工具的项目专用构建。这类构建将所有本地依赖包含在项目中,使你能够在模拟器、模拟器或实体设备上运行类似生产环境的项目构建。此工作流程允许你为每个平台以及实体设备、Android 模拟器和 iOS 模拟器创建开发版本,你的团队可以通过 eas build:dev 进行访问。

Expo 金色工作流程:自动化开发构建的创建
Expo 金色工作流程:自动化开发构建的创建

学习如何使用 EAS 工作流自动化为 Android、iOS 设备和模拟器构建开发版本。

开始使用

🌐 Get started

先决条件

2 要求

2.

创建构建配置

在配置好你的项目和设备后,将以下构建配置添加到你的 eas.json 文件中。

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.

.eas/workflows/create-development-builds.yml
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:

Terminal
eas workflow:run .eas/workflows/create-development-builds.yml