0

我在我的 iOS 应用程序中设置了 Firebase 崩溃报告。我已经下载了ServiceAccount.jsonandGoogleService-Info.plist并且包含在我的项目目标中。

这是构建脚本:

GOOGLE_APP_ID=1:*********:ios:************
"${PODS_ROOT}"/FirebaseCrash/upload-sym "${SRCROOT}"/ServiceAccount.json

json 文件的路径是正确的,因为它位于我项目的根目录中。但是当我归档应用程序时,它在文件中的编译期间给出了一个错误 -upload-sym-util.bash在验证 plist 文件期间的这一行。

if ! fcr_verify_svc_plist; then
    xcerror "Incorrect/incomplete service account file."
    return 2

我尝试更改构建脚本但没有任何收获。

这是我的 Podfile.lock 的片段:

- Firebase/Crash (4.5.0):
- Firebase/Core
- FirebaseCrash (= 2.0.2)

当我按照崩溃报告集成指南中提到的步骤进行操作时,可能会出现什么问题。

4

1 回答 1

0

我已经整理好了。提供的 ServiceAccount.json 文件中没有私钥。

这是来自 Firebase 控制台的其他一些 json。因此,出现此问题时最好检查 json 文件的内容:

if ! fcr_verify_svc_plist; then
xcerror "Incorrect/incomplete service account file."
return 2

谢谢,

于 2017-12-29T08:09:24.400 回答