2
votes

I know this question has been asked earlier many times but those answers doesn't seems to work now. I have a Xamarin iOS App, Firebase Analytics logs well in simulator but when running in actual device I get the below error:

In Simulator it logs the below 2020-08-12 20:42:24.471571+0400[5016:66465] 6.5.0 - [Firebase/Analytics][I-ACS023008] To disable debug logging set the following application argument: -noFIRAnalyticsDebugEnabled

But in actual iPhone 11 it logs the below :O

default 19:01:12.272016+0400 iOS 6.5.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled

I have added extra mlaunch arguments in iOS project settings under Run -> Config (--argument=-FIRAnalyticsDebugEnabled) and mtouch arguments in iOS build(--argument=-FIRDebugEnabled) and also I did different permutations of both commands also, but it doesn't seem to log anything in Debug view. I cannot see my device in the developer console.

I am using the below Nuget package ver - Xamarin.Firebase.iOS.Analytics(6.0.4)

Thanks in advance.

1
Hi , if only set mtouch arguments in iOS build , whehter it work? - Junior Jiang
Hi, I tried with both --argument=-FIRDebugEnabled --argument=-FIRAnalyticsDebugEnabled in only iOS build mtouch command doesn't seem to work. I still get the same log default 19:01:12.272016+0400 iOS 6.5.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled - Maddiee
Okey, whether the Linker Behavior select the Don't Link to check whehter it works? - Junior Jiang
Doesn't work if I change to Don't link I am getting build errors. :| - Maddiee
Okey , how about link all ? It seems used with mtouch. - Junior Jiang

1 Answers

0
votes

First of all it seems that Firebase Analytics Debug View for Xamarin iOS is really buggy and may work or not with no particular reason. I spent a week trying to debug events for Xamarin and Unity platforms (both Android and iOS) and while it worked perfectly well on Unity Android and iOS and on Xamarin Android, Xamarin iOS could work one day and stop working another day without any changes. In that case my advice is to Debug via StreamView (Realtime) menu just above DebugView. Looks like it always works