Turning Firebase Analytics on on Xcode

checklist picture checklist · Mar 30, 2017 · Viewed 33.1k times · Source

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

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.

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

Answer

checklist picture checklist · Mar 30, 2017

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

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

  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.

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