【问题标题】:Firebase Crash Reporting not workingFirebase 崩溃报告不起作用
【发布时间】:2018-06-07 19:12:41
【问题描述】:

我在我的 iOS 应用中设置了 Firebase 崩溃报告。我已经下载了ServiceAccount.jsonGoogleService-Info.plist 并包含在我的项目目标中。

这是构建脚本:

GOOGLE_APP_ID=1:*********:ios:************
"${PODS_ROOT}"/FirebaseCrash/upload-sym "${SRCROOT}"/ServiceAccount.json

json 文件的路径是正确的,因为它位于我项目的根目录中。但是当我归档应用程序时,它在文件中的编译时出错 - 在验证 plist 文件期间在这一行出现upload-sym-util.bash

if ! fcr_verify_svc_plist; then
    xcerror "Incorrect/incomplete service account file."
    return 2

我已尝试更改构建脚本,但没有任何收获。

这是我的 Podfile.lock 中的 sn-p:

- Firebase/Crash (4.5.0):
- Firebase/Core
- FirebaseCrash (= 2.0.2)

我按照崩溃报告集成指南中提到的步骤操作可能是什么问题。

【问题讨论】:

    标签: ios firebase firebase-crash-reporting run-script


    【解决方案1】:

    我已经整理好了。提供的 ServiceAccount.json 文件中没有私钥。

    这是来自 Firebase 控制台的其他一些 json。所以出现这个问题时最好检查一下json文件的内容:

    if ! fcr_verify_svc_plist; then
    xcerror "Incorrect/incomplete service account file."
    return 2
    

    谢谢,

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-04-29
      • 2017-11-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多