For years management at my company was getting "crash-free" users stats, and then in the latest release it just disappeared! We still get crash reports no problem.
Spent two weeks with Firebase support, trying all sorts of stuff, no change.
Adding launch flags to the app resulted in this message in version 10:
[Crashlytics:Crash:Reports:Event] Firebase Analytics SDK not detected. Crash-free statistics and breadcrumbs will not be reported
I’m at a dead end – did everything I was told to do, still no analytics.
2
Answers
I searched for a special plist setting that would disable analytics, but it wasn't in the app anywhere. So to be 100% sure it was enabled, I added this code:
BAM! Now I see gobs of analytics messages in the Xcode console, and the warning disappeared!
Then I got suspicious and tried this:
That worked too. But why?
My guess is that their framework relies on the
NSObject
class method+(void)initialize;
- the framework needs to get some message before iOS will send it to the class.I spent a lot of time tracking this down, and hope it helps someone in the future!
It sounds like FirebaseAnalytics isn’t being linked into the app when there wasn’t a reference to it.
The more standard solution is to Add the
-ObjC
flag toOther Linker Settings
in the Build Settings tab.