由firebase崩溃报告上传的错误符号文件 [英] Wrong Symbol Files uploaded by firebase crash reporting

查看:826
本文介绍了由firebase崩溃报告上传的错误符号文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当崩溃上传到firebase仪表板时,它总是会显示消息上传符号文件,以表示UUID ******* 的未来堆栈跟踪。但是我确实通过查看符号文件选项卡确保符号文件已上传。我注意到的一点是,符号文件有一个不同的UUID然后崩溃的消息说。我可能在这里做错了什么?

When a crash gets uploaded to the firebase dashboard it always shows the message Upload symbol file to symbolicate future stack traces for UUID *******. However I did make sure that the symbol files got uploaded by looking in the Symbol Files tab. Something I noticed though was that the symbol files had a different UUID then what the message on the crash said. What might I be doing wrong here?

奇怪的是,似乎上传的符号文件中的UUID和上述消息中的UUID都不正确。当我通过本指南(基本上运行查找)在本地检查时,我得到第三个UUID。 -iname * .app in 〜/ Library / Developer / CoreSimulator / Devices / )。

Something strange is that it seems like neither the UUID in uploaded symbol files nor in the message mentioned above is correct. I get a third UUID when I check it up locally by following this guide (basically running find . -iname *.app in ~/Library/Developer/CoreSimulator/Devices/).

我首先在我们的应用程序中使用swift 2和xcode 7来解决这个问题。但是我也使用一个新的firebase应用程序(ios sdk v3.8)和一个最小的xcode 8项目使用swift 3获得相同的问题正如 docs 中所述。

I first got this issue in our app using swift 2 and xcode 7. However I also gets the same issue using a new firebase app (ios sdk v3.8) and a minimal xcode 8 project with swift 3 that is setup exactly as advised in the docs.

// AppDelegate.swift
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    FIRApp.configure()
    return true
}

// ViewController.swift
override func viewDidLoad() {
    super.viewDidLoad()
    FIRCrashMessage("A test message")
    fatalError()
}

// Run script in Build Phases that uploads symbol files
GOOGLE_APP_ID=our_google_app_id
"${PODS_ROOT}"/FirebaseCrash/upload-sym "serviceaccount.json"

// Podfile (using latest versions as of 2017-05-12, v3.17.0)
pod 'Firebase/Core'
pod 'Firebase/Crash'


推荐答案

我想也许ServiceAccount.json的路径错了,请再次检查。它应该是

I think maybe the path of "ServiceAccount.json" is wrong, please check again. It should be

$ {PODS_ROOT}/ FirebaseCrash / upload-sym/Path/To/ServiceAccount.json\"

您还需要在脚本中添加此内容。

And you need also to add this in the script.

rm $ HOME / Library / Preferences / com.google.SymbolUpload *

这篇关于由firebase崩溃报告上传的错误符号文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆