skip to Main Content

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


  1. Chosen as BEST ANSWER

    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:

       [FIRApp configure];
       [FIRAnalytics setAnalyticsCollectionEnabled:YES];
    

    BAM! Now I see gobs of analytics messages in the Xcode console, and the warning disappeared!

    Then I got suspicious and tried this:

        [FIRApp configure];
        (void)[FIRAnalytics appInstanceID];
    

    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!


  2. 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 to Other Linker Settings in the Build Settings tab.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search