【问题标题】:Firebase crashes unreadableFirebase 崩溃无法读取
【发布时间】:2016-10-20 16:55:08
【问题描述】:

我在 FireBase 上阅读崩溃报告时遇到问题,我的报告如下所示:

我已经按照these instructions 符号化了堆栈跟踪,得到了相同的结果。

  • 我使用的是 Xcode 8
  • 我的应用是用 Swift 3 制作的
  • 已经在我的 appDelegate.didFinishLaunchingWithOptions 方法,确实让它崩溃了,卸载调试器,修复错误,重新运行应用程序,收到消息“崩溃成功上传”等...
  • 我正在使用 pod(pod 'Firebase' 和 pod 'Firebase/Crash')
  • 我在 FireBase 控制台中看到我的事件和崩溃(只是 不可读)
  • 在构建时自动安装了符号化脚本(见图):

已下载 FireBase 提供的示例(崩溃示例不包括自动符号化的脚本)

已经按照这个解决方案(没用):

还有很多其他的。

已经访问过最近 6 个月的 stackoverflow 和 google 群组上的链接。

没有任何效果,请帮助!!!

更新#1:我收到了一封来自 firebase-support@google.com 的电子邮件:

重置您的 OAuth 凭据

没有用,我也一直在测试脚本,上传是正确的,我开始认为是 Firebase 错误

【问题讨论】:

    标签: ios swift3 symbolicatecrash firebase-crash-reporting


    【解决方案1】:

    您的上传脚本似乎没有设置GOOGLE_APP_ID var。它应该类似于:

    # 将其替换为 GoogleService-Info.plist 文件中的 GOOGLE_APP_ID

    1:xxxxxxxxx:ios:xxxxxxxxxxx=1:my:app:id
    

    # Replace the /Path/To/ServiceAccount.json with the path to the key you just downloaded

    ${PODS_ROOT}"/FirebaseCrash/upload-sym "firebasecrash/firebasecrashreport.json

    这里firebasecrashreport.json 是ServiceAccount JSON 文件的名称,而firebasecrash 是我的项目的名称。

    【讨论】:

      【解决方案2】:

      您的上传脚本似乎没有设置 GOOGLE_APP_ID 环境变量。上传运行脚本步骤应如下所示:

      # Replace this with the GOOGLE_APP_ID from your GoogleService-Info.plist file
      GOOGLE_APP_ID=1:1234567890123:ios:1234abc567de89
      
      # Replace the /Path/To/ServiceAccount.json with the path to the key you just downloaded
      "${PODS_ROOT}"/FirebaseCrash/upload-sym "/Users/yourname/yourproject/Your Project Name-5632e387efda6.json"
      

      我回答的以下问题与您的问题相似。

      Firebase iOS multiple errors when uploading symbol files

      【讨论】:

      • 我做了,还是一无所获
      • 更新到最新的 pod (1.1.3),它有更好的 swift 支持。此外,可能存在一个问题,即 firebase ui 将崩溃报告为未符号化,即使它是(仅适用于 swift)。您要查找的是属于您的应用程序的堆栈跟踪行,这些行是否具有文件名和行号。
      【解决方案3】:

      终于,尤里卡!

      我不确定是什么错误,但我将其粘贴在这里以防有人遇到同样的错误:

      1) 我在 Firebase 控制台上删除了我的应用

      2) 在 Firebase 控制台中创建一个具有不同名称的新应用

      3) 创建并下载新的 GoogleService-Info.plist

      4) 删除之前的键(rm $HOME/Library/Preferences/com.google.SymbolUpload*)

      5)Create new firebase crash configuration

      6) 将步骤 5 中获得的文件复制到我的项目的根路径中

      7) 在 firebase 脚本中启用所有权限

      chmod -R 777 ./Pods/FirebaseCrash
      

      8) 添加了步骤 5 中提到的 firebase 配置链接中提到的脚本阶段(我注意到我之前不工作的配置名称中有空格,所以我创建了一个非空格名称)

      最后(我不知道确切的原因)正在工作:

      【讨论】:

      • 啊。这行得通。我也不知道它是如何工作的。但我得到了行号:)
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-02-23
      • 1970-01-01
      • 2019-06-14
      • 1970-01-01
      • 2021-01-26
      相关资源
      最近更新 更多