Firebase崩溃难以理解

时间:2016-10-20 16:55:08

标签: ios swift3 symbolicatecrash firebase-crash-reporting

我在阅读有关FireBase的崩溃报告时遇到问题,我的报告如下:

FireBase crash report

我已经按照these instructions来表示堆栈跟踪,得到了相同的结果。

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

enter image description here

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

已经按照这个解决方案(不起作用):

和其他许多人。

已经访问过去6个月有关此问题的stackoverflow和google群组的链接。

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

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

  

重置您的OAuth凭据

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

3 个答案:

答案 0 :(得分:2)

您的上传脚本似乎没有设置ImportError: No module named pyPgSQL.PgSQL var。它应该是这样的:

#将此替换为GOOGLE_APP_ID文件中的GOOGLE_APP_ID

GoogleService-Info.plist

<强> 1:xxxxxxxxx:ios:xxxxxxxxxxx=1:my:app:id

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

此处${PODS_ROOT}"/FirebaseCrash/upload-sym "firebasecrash/firebasecrashreport.json是ServiceAccount JSON文件的名称,firebasecrash是我项目的名称。

答案 1 :(得分:1)

您的上传脚本似乎没有设置GOOGLE_APP_ID env var。上传运行脚本步骤应类似于以下内容:

# 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

答案 2 :(得分:1)

最后,尤里卡!

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

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

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

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

4)删除以前的键(chmod -R 777 ./Pods/FirebaseCrash

5)Create new firebase crash configuration

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

enter image description here

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

 $list = json_decode($_POST['data'], true);

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

enter image description here

最后(我不确切地知道他们)正在工作:

enter image description here