2016-10-20 103 views
2

我有一个问题阅读火力崩溃报告,我的报告是这样的:火力地堡崩溃不可读

FireBase crash report

我已经跟着these instructions到symbolicate堆栈跟踪,得到了相同的结果。

  • 我使用的Xcode 8
  • 我的应用程序在斯威夫特3
  • 做已经写 “FIRApp.configure()” 在我的 appDelegate.didFinishLaunchingWithOptions方法,并使其崩溃,deattach的debbuger ,修复错误,重新运行应用程序,得到消息“崩溃成功上传”,等等...
  • 我使用pod(pod'Firebase'和pod'Firebase/Crash')
  • 我看到FireBase控制台我的事件和崩溃(只是 无法读取)
  • 安装symbolicate上建立自动脚本(见图片):

enter image description here

已经下载的火力提供了实例(崩溃例如不包括自动symbolicate脚本)

已经遵循了这一解决方案(不起作用):

等等。

已访问过去6个月链接在stackoverflow和谷歌组与此问题。

没有工作,请帮助!

更新#1:

reset your OAuth credentials

没有工作,我也一直在测试脚本和上传是正确的,我:我说收到一封电子邮件从[email protected] m开始认为是Firebase bug

回答

1

最后,尤里卡!

我不知道什么是错误的,但我在这里贴的情况下,任何人被experiencig同样的错误:

1)我删除了我的应用程序火力地堡控制台上

2)创建火力地堡控制台不同的名称

3)创建一个新的应用程序,并下载新的GoogleService-Info.plist中

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

5)Create new firebase crash configuration

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

enter image description here

7)使能在火力脚本的所有权限

chmod -R 777 ./Pods/FirebaseCrash 

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

enter image description here

最后(我不知道到底是WY)工作:

enter image description here

+0

啊。这工作。我不知道它是如何工作的。但我得到了行号:) –

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

+0

我做过了,还没有得到 – Eduardo

+0

更新到最新的pod(1.1.3),它有更好的快速支持。此外,可能存在的问题是,firebase ui将崩溃报告为非符号,即使它是(仅适用于swift)。你想要寻找的是属于你的应用程序的堆栈跟踪行,这些行是否有文件名和行号。 –

2

您上传脚本似乎没有被设置GOOGLE_APP_ID var.It应该是这样的:

#用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的名字是我的项目的名称。