简体   繁体   English

iOS-Firebase崩溃报告问题

[英]iOS - Firebase Crash Reporting issue

I have gone through this doc line by line. 我已经逐行浏览了此文档。 https://firebase.google.com/docs/crash/ios https://firebase.google.com/docs/crash/ios

And I got the crash reported successfully. 而且我成功报告了崩溃

But when I uploaded my code to git , other user get crash complaining upload-sym. 但是当我将代码上传到git时,其他用户在抱怨upload-sym时崩溃。

Because doc says to add the following to run script: 因为doc说要添加以下内容来运行脚本:

# Replace this with the GOOGLE_APP_ID from your GoogleService-Info.plist file
GOOGLE_APP_ID=1:my:app:id

# Replace the /Path/To/ServiceAccount.json with the path to the key you just downloaded
"${PODS_ROOT}"/FirebaseCrash/upload-sym "/Path/To/ServiceAccount.json"

I guess the error is due to that path to my private key "ServiceAccount.json" 我猜该错误是由于我的私钥“ ServiceAccount.json”的路径引起的

Because I have my own path for that private key , but the another person will get my path to private key which is not possible . 因为我有自己的私有密钥路径,但是另一个人将获得我通往私有密钥的路径。

So, can anyone tell where should I place that private key to excuse this error. 因此,任何人都可以告诉我应该将该私钥放在何处,以解决此错误。

将您的serviceAccount.json放在与xcode项目或工作空间相同的目录中 Place your ServiceAccount.json to root of your project, 将您的ServiceAccount.json放置到项目的根目录,

and then give path as 然后给出路径为

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

This will work for all your users. 这将对所有用户都有效。 Although it is not recommended to share your ServiceAccount.json to other user other than your team members. 尽管不建议与团队成员以外的其他用户共享ServiceAccount.json。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM