我正在为 Android 和 iOS 开发 react-native 项目。
我使用 FaSTLane 将我的 Android 应用分发到 Firebase App Distribution。我关注了firebase instruction和 fastlane instruction设置这些工具。
在快车道部分,这是我的Fastfile
:
desc "Submit a new Beta Build to firebase app distribute"
lane :beta do
gradle(task: "clean assembleRelease")
firebase_app_distribution(
app: "1:4823523451:android:fb106cd9iu76gr3ededc0",
firebase_cli_token: "1//0cDO6RQESnRMvCgYIACAAgAwSNwF-L9IrPk97hOEsuXxXNHXUfpKQRsiAsqu_mmGhGmOPoIfdfThgjHoKlJS4X4auLr_d2QoLSXg",
groups: "qa-team, trusted-testers",
release_notes: "my 1st release",
testers: "n1cer4@gmail.com",
debug: true)
end
firebase_cli_token
以上是我通过运行命令 bundle exec fastlane run firebase_app_distribution_login
获取的刷新 token 应用程序 ID 也是正确的。
当我运行
fastlane beta
,我最终得到以下错误,它说 App Distribution could not find your app. Make sure to onboard your app by pressing the "Get started" button on the App Distribution page in the Firebase console
(我在截图中隐藏了一些敏感信息):我没有看到提到“开始”按钮的错误消息。当我进入我的 firebase 控制台时,apk 文件会上传到那里:
那么,为什么我在运行
fastlane beta
时会出现该错误? ?(顺便说一句,在上面的屏幕截图中,您可以看到它表示邀请了一位测试员,实际上我在 Firebase 控制台上手动添加了该测试员,您可以看到我的
Fastfile
定义了 testers
但他们没有被 faSTLane 添加为测试员,我猜是因为我遇到的错误。)
最佳答案
当您单击应用程序分发选项卡时,Android 和 iOS 项目的标题旁边会出现一个下拉菜单。您必须单击两者的“开始”。
关于android - FaSTLane 分发失败,错误为 "App Distribution could not find your app",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65412165/