繁体   English   中英

iOS-Firebase崩溃报告问题

[英]iOS - Firebase Crash Reporting issue

我已经逐行浏览了此文档。 https://firebase.google.com/docs/crash/ios

而且我成功报告了崩溃

但是当我将代码上传到git时,其他用户在抱怨upload-sym时崩溃。

因为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"

我猜该错误是由于我的私钥“ ServiceAccount.json”的路径引起的

因为我有自己的私有密钥路径,但是另一个人将获得我通往私有密钥的路径。

因此,任何人都可以告诉我应该将该私钥放在何处,以解决此错误。

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

然后给出路径为

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

这将对所有用户都有效。 尽管不建议与团队成员以外的其他用户共享ServiceAccount.json。

暂无
暂无

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

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