iOS上的Firebase Crashlytics设置? [英] Firebase Crashlytics setup on iOS?

查看:329
本文介绍了iOS上的Firebase Crashlytics设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Firebase Crashlytics 集成到我的应用程序中,该应用程序已启用Firebase Crash Reporting.我已经在此处中遵循了文档,但是运行自定义构建阶段时,我的构建始终会失败:

I'm trying to integrate Firebase Crashlytics into iOS my app, which has Firebase Crash Reporting enabled. I've followed the documentation here, but my build always fails when running the custom build phase:

"${PODS_ROOT}/Fabric/run"

Xcode中的错误如下:

The error in Xcode is the following:

错误:结构:配置问题

error: Fabric: Configuration Issue

结构API密钥无效. Fabric运行脚本构建阶段应包含您的API密钥: ./Fabric.framework/运行INSERT_YOUR_API_KEY INSERT_YOUR_BUILD_SECRET

Fabric API key not valid. Your Fabric run script build phase should contain your API key: ./Fabric.framework/run INSERT_YOUR_API_KEY INSERT_YOUR_BUILD_SECRET

我没有Fabric API密钥,我想Firebase库应该注意它们的Fabric密钥.我的项目中有Info.plist,Firebase可以正常运行,但是我无法超越Fabric运行阶段.非常感谢您提供有关如何解决此问题的帮助!

I do not have a Fabric API key and I suppose that they fabric keys should be taken care by the Firebase library. I have the Info.plist in my project, Firebase is fully functional, but I cannot get past the Fabric run phase. Any help on how to fix this is greatly appreciated!

推荐答案

最后弄清楚了,为可能因同一问题感到困惑的任何人发帖.

Finally figured it out, posting for anyone that might be baffled by the same problem.

如果您尝试通过 OSX Fabric.app 安装Fabric,或者您过去使用过Fabric Crashlytics,则它将在您的Info.plist中添加了Fabric API密钥, Fabric初始化构建脚本试图读取的内容(我想).

If you've tried to install fabric via the OSX Fabric.app, or you were using Fabric Crashlytics in the past, then it will have added your Fabric API key to your Info.plist, which the Fabric initialization build script is trying to read (I guess).

删除后,Fabric键构成了Info.plist脚本,不需要任何键/参数.

After deleting the Fabric keys form the Info.plist the script works, without the need of any keys/params.

Firebase文档应对此包含一个摘要警告.

The Firebase docs should include a snippet warning on this.

这篇关于iOS上的Firebase Crashlytics设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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