在Xcode上启用Firebase Analytics [英] Turning Firebase Analytics on on Xcode

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

问题描述

我正在尝试测试Firebase Analytics的实施.在他们的文档中,他们指出:

I am trying to test the implementation of my Firebase Analytics. In their documentation they state that:

通过将-FIRDebugEnabled参数传递给 应用.您可以在应用程序的Xcode中添加此参数 方案.通过-FIRDebugEnabled启用调试模式时,进一步 应用程序的执行也将处于调试模式.为了 返回默认模式,必须显式禁用调试模式 带有应用程序参数-FIRDebugDisabled.

Enable debug mode by passing the -FIRDebugEnabled argument to the application. You can add this argument in the application’s Xcode scheme. When debug mode is enabled via -FIRDebugEnabled, further executions of the application will also be in debug mode. In order to return to default mode, you must explicitly disable the debug mode with the application argument -FIRDebugDisabled.

很遗憾,我不知道我在哪里设置此方案.在Android中,这很容易.帮助将不胜感激.

Unfortunately I do not understand where it is that I set this scheme. In Android this was easy. Help would be appreciated.

推荐答案

我在Google的该备用页面上找到了答案:

I have found the answer on this alternative page of Google:

https://firebase.google.com/docs/analytics/ios/start

  1. 在Xcode中,选择产品">方案">编辑方案..."
  2. 从左侧菜单中选择运行".
  3. 选择参数"选项卡.
  4. 在启动时传递的参数"部分中,添加-FIRAnalyticsDebugEnabled.
  1. In Xcode, select Product > Scheme > Edit scheme...
  2. Select Run from the left menu.
  3. Select the Arguments tab.
  4. In the Arguments Passed On Launch section, add -FIRAnalyticsDebugEnabled.

我希望Google停止发布半成品和文档.可以在全球范围内节省数十万小时

I wish Google would stop releasing half baked products and documentation. Could save hundreds of thousands of hours worldwide

这篇关于在Xcode上启用Firebase Analytics的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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