Firebase崩溃报告上传错误的符号文件

当崩溃被上传到firebase仪表板时,它总是显示消息Upload symbol file to symbolicate future stack traces for UUID ******* 。 不过,我确实通过在符号文件选项卡中查找符号文件。 我注意到的东西是,符号文件有不同的UUID,然后崩溃的消息说。 我可能在这里做错了什么?

奇怪的是,似乎上传的符号文件中的UUID和上面提到的消息都是正确的。 当我按照本指南在本地进行检查时(基本上在~/Library/Developer/CoreSimulator/Devices/ find . -iname *.app ,我得到第三个UUID。

我首先在我们的应用程序中使用swift 2和xcode 7得到了这个问题。但是我也使用新的firebase应用程序(ios sdk v3.8)和一个最小的xcode 8项目与swift 3得到同样的问题,完全按照build议文档 。

 // 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”的path是错误的,请再次检查。 它应该是

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

而且你还需要在脚本中添加这个。

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