Firebase iOS调试控制台未记录任何内容 [英] Firebase iOS Debug Console not logging anything
问题描述
我在控制台和应用程序中都设置了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.
输出到控制台:
<FIRAnalytics/DEBUG> Logging event: origin, name, params: app,
log_something, {
"_o" = app;
"full_text" = khbsdpibdsjl;
name = lwkjbgskljsavdkjl;
}
我启用了调试标志:-FIRDebugEnabled
.
但是在调试事件控制台中没有任何内容.我看不到可用的设备,没有记录任何事件,任何连接都绝对为0的指示.我一定想念什么吗?
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?
我一直遵循此步骤来设置调试事件. https://firebase.google.com/docs/analytics/debugview#enabling_debug_mode
edit: I have been following this for setting up Debugging Events. https://firebase.google.com/docs/analytics/debugview#enabling_debug_mode
我在StreamView中看到了事件,但是即使启用了调试模式,在调试视图中也没有看到任何事件.
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 ,
按照以下步骤操作,
1.在Xcode中,选择产品→方案→EditScheme .
1.In Xcode, select Product → Scheme → EditScheme.
2.从左侧菜单中选择运行,然后选择选择参数标签 在传递给+的参数"选项中
2.Select Run from left Menu and Select Arguments tab In the Arguments Passed on + option
添加 -FIRDebugEnabled
有关调试视图的详细信息,请遵循以下步骤 DebugView跟踪Firebase文档
For detail debug view follow steps DebugView track Firebase doc
要在XCode项目中发送事件,请遵循以下代码,
To send an event in XCode project follow code below,
客观C
[FIRAnalytics logEventWithName:@"share_image"
parameters:@{@"name": name, @"full_text": text}];
迅速
Analytics.logEvent("share_image", parameters: ["name": name, "full_text": text])
对于事件日志,请遵循详细步骤在Application Firebase文档中记录事件
For events log follow detail steps Log events in Application Firebase doc
希望这会对某人有所帮助.
Hope this will help someone.
这篇关于Firebase iOS调试控制台未记录任何内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!