与你的团队共享开发构建

了解如何安装并与你的团队共享开发或在多个设备上运行它。


Android 和 iOS 都提供了将应用的构建版本直接安装到设备上的方法。这让你可以完全控制在设备上安装特定的构建版本,从而快速迭代,并同时提供多个应用版本供审核。你还可以与团队共享,或在多个测试设备上运行。

🌐 Android and iOS both offer ways to install a build of your application directly on devices. This gives you full control of putting specific builds on devices, allowing you to iterate quickly and have multiple builds of your application available for review at the same time. You can also share it with your team or run it on multiple test devices.

共享网址

🌐 Share the URL

当开发版本准备就绪时,会为你的构建生成一个可共享的 URL,并附有启动和运行的说明。你可以将此 URL 与团队成员共享,或发送到你的测试设备以安装该构建。生成的 URL 对你的项目构建是唯一的。

🌐 When a development build is ready, a shareable URL is generated for your build with instructions on how to get it up and running. You can use this URL with a teammate or send it to your test device to install the build. The URL generated is unique to the build for your project.

如果你在创建开发版本后注册了任何新的 iOS 设备,你将需要创建一个新的开发版本才能在这些设备上安装。更多信息,请参见 内部分发

使用 EAS 仪表盘

🌐 Use the EAS dashboard

你也可以将你的队友引导到 EAS 仪表板中的构建页面。在那里,他们可以直接在自己的设备上下载构建产物。

🌐 You can also direct your teammate to the build page in the EAS dashboard. From there, they can download the build artifact directly on their device.

使用 EAS CLI

🌐 Use EAS CLI

你的队友也可以使用 EAS CLI 下载并安装开发版。他们必须确保使用与开发版关联的 Expo 账号进行签名,然后可以运行以下命令:

🌐 Your teammate can also download and install the development build using EAS CLI. They have to make sure that they are signed from the Expo account associated with the development build and then can run the following command:

Terminal
eas build:run --profile development

如果开发版本的配置文件名称与 development 不同,请使用 --profile 代替它。

🌐 If the profile name for the development build is different from development, use it instead with --profile.

仅限 iOS 的说明

🌐 iOS-only instructions

如果你正在使用 iOS 16 或更高版本,并且尚未开启开发者模式,你需要先启用它才能运行你的构建。(如果你使用的是企业配置,则不适用。)

你可以使用 eas build:resign 为现有的 iOS .ipa 进行代码签名,以匹配新的临时分发配置文件。这有助于在与团队分发时节省时间。例如,如果你想向现有构建添加新的测试设备,可以使用此命令更新配置文件以包含该设备,而无需从头重建整个应用。更多信息,请参见 重新签名新凭证

🌐 You can use eas build:resign to codesign an existing .ipa for iOS to a new ad hoc provisioning profile. This helps reduce time when distributing with your team. For example, if you want to add a new test device to an existing build, you can use this command to update the provisioning profile to include the device without rebuilding the entire app from scratch. For more information, see Re-signing new credentials.

下一步

🌐 Next steps

在同一设备上安装多个应用变体

了解如何在同一设备上并排安装应用的多个版本(开发版、预览版、生产版),方法是将 app.json 转换为 app.config.js ,以及启动每个版本开发服务器所需的其他配置。

共享你的应用的预发布版本

了解有关共享应用预发布版本的更多信息。