【问题标题】:Fastlane distribution failed with error "App Distribution could not find your app"Fastlane 分发失败并出现错误“应用程序分发找不到您的应用程序”
【发布时间】:2021-04-01 08:40:49
【问题描述】:

我正在为 Android 和 iOS 开发 react-native 项目。

我使用 Fastlane 将我的 Android 应用分发到 Firebase App Distribution。我已经按照firebase instructionfastlane 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获取的刷新令牌

app 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 firebase react-native react-native-android fastlane


    【解决方案1】:

    当您单击应用分发选项卡时,Android 和 iOS 项目的标题旁边会出现一个下拉菜单。您必须点击两者的“开始”。

    【讨论】:

    • 我在配置完所有内容后收到 404 响应,这解决了我的问题
    • 这也是我的问题。 Fastlane 只是简单地给了我一个 404 错误,但如果您使用 Firebase CLI 进行测试,它会给您提供真正有帮助的错误! Error: App Distribution could not find your app {YOUR_APP_ID} Make sure to onboard your app by pressing the "Get started" button on the App Distribution page in the Firebase console: https://console.firebase.google.com/project/_/appdistribution
    【解决方案2】:

    如果您的项目中有多个风格/应用程序,请确保为每个应用程序按下“开始”按钮(检查“应用程序分发”标题附近的下拉菜单)

    如果您仍然遇到此问题,请检查使用 debug=true 提供的 API 响应,因为“找不到您的应用”消息非常具有误导性,并且在每个 404 响应中都会发生。就我而言,我输入了错误的“组”参数。

    【讨论】:

    • 我的 firebase 项目中只添加了一个 Android 应用。我没有多个。
    • 如何查看 API 响应?你能说得更具体点吗?
    • “组”值错误导致我出现此错误。
    • @Leem.fin 如果将 debug: true 放在 firebase_app_distribution 通道内,您将看到 API 调用的响应
    【解决方案3】:

    就我而言,我使用 Firebase 服务帐户凭据对 Fastlane 进行了身份验证。我遇到了同样的错误

    App Distribution 找不到您的应用。确保登上您的 应用程序通过按“应用程序分发”页面上的“开始”按钮 在 Firebase 控制台中

    我注意到我错误地配置了一个额外的服务帐户。删除帐号后,我就可以分发了。

    【讨论】:

      【解决方案4】:

      我有同样的错误。我解决了它更新插件:

      bundle exec fastlane update_plugins
      

      另外,fastlane 帮助推荐了最后一个版本。我安装它执行:

      sudo gem install fastlane
      

      【讨论】:

        猜你喜欢
        • 2021-09-10
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-03-22
        • 2012-10-01
        相关资源
        最近更新 更多