Firebase iOS Debug Console not logging anything
Solution 1
Try this , This is work for me ,
Follow below steps ,
1.In Xcode, select Product → Scheme → EditScheme.
2.Select Run from left Menu and Select Arguments tab In the Arguments Passed on + option
add -FIRDebugEnabled
For detail debug view follow steps DebugView track Firebase doc
To send an event in XCode project follow code below,
Objective C
[FIRAnalytics logEventWithName:@"share_image"
parameters:@{@"name": name, @"full_text": text}];
Swift
Analytics.logEvent("share_image", parameters: ["name": name, "full_text": text])
For events log follow detail steps Log events in Application Firebase doc
Hope this will help someone.
Solution 2
Make sure to remove the OS_ACTIVITY_MODE:disable from the Environment Variables in your project scheme if you added it at some point.
Solution 3
Make sure to add ONE DASH before -FIRDebugEnabled
I wasted a whole day making silly mistake having missed that DASH
Hope that doesn't happen to others!
Solution 4
Now it doesn't matter much but still for the people who are getting errors on this issue. Debug mode of firebase analytics does not work sometimes due to issue in GoogleServices-Info.plist
file
Simply makes these 2 changes.
- Set IS_ANALYTICS_ENABLED to YES
- Set FIREBASE_ANALYTICS_COLLECTION_DEACTIVATE to NO
Solution 5
I also have the same problems.
1 check your Cocopods' s Firebase version.
- use pod update Firebase
- List item
- make sure that is the latest
2 open debug mode
- In the Arguments Passed On Launch part
- add - FIRDebugEnabled.
![Admin](/assets/logo_square_200-5d0d61d6853298bd2a4fe063103715b4daf2819fc21225efa21dfb93e61952ea.png)
Admin
Updated on December 11, 2021Comments
-
Admin over 2 years
I have setup firebase in both the console and in the app. Everything configures correctly, and events appear to be logging in the app.
Output to console:
<FIRAnalytics/DEBUG> Logging event: origin, name, params: app, log_something, { "_o" = app; "full_text" = khbsdpibdsjl; name = lwkjbgskljsavdkjl; }
I have the debug flag enabled:
-FIRDebugEnabled
.Yet in the debugging events console there is NOTHING. I see no devices available, no events being logged, absolutely 0 indication of anything connected. I must be missing something?
edit: I have been following this for setting up Debugging Events. https://firebase.google.com/docs/analytics/debugview#enabling_debug_mode
I am seeing events in the StreamView, but nothing in the debug view even though I have debug mode enabled.