Firebase iOS 调试控制台未记录任何内容 [英] Firebase iOS Debug Console not logging anything
问题描述
我在控制台和应用程序中都设置了 firebase.一切都配置正确,事件似乎正在记录在应用程序中.
输出到控制台:
记录事件:来源、名称、参数:应用程序、日志东西,{_o"=应用程序;全文"= khbsdpibdsjl;名称 = lwkjbgskljsavdkjl;}
我启用了调试标志:-FIRDebugEnabled
.
然而在调试事件控制台中什么也没有.我看到没有可用的设备,没有记录任何事件,绝对 0 指示任何连接.我一定是遗漏了什么?
我一直在关注此设置调试事件.
2.从左侧菜单中选择运行和选择参数标签在传递的参数 + 选项中
添加-FIRDebugEnabled
有关详细调试视图,请按照步骤 DebugView track Firebase doc 一个>
要在 XCode 项目中发送事件,请遵循以下代码,
目标 C
[FIRAnalytics logEventWithName:@"share_image"参数:@{@"name": name, @"full_text": text}];
迅捷
Analytics.logEvent("share_image", parameters: ["name": name, "full_text": text])
对于事件日志,请按照详细步骤在 Application Firebase 文档中记录事件
希望这会对某人有所帮助.
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.
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.
这篇关于Firebase iOS 调试控制台未记录任何内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!