Analytics is not started on 7.5.0 and later versions

[REQUIRED] Step 1: Describe your environment

  • Xcode version:12.4 (12D4e)
  • Firebase SDK version: 7.5.0, 7.6.0, 7.7.0
  • Installation method: CocoaPods
  • Firebase Component: Analytics

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

The latest version of our app is not visible on Firebase console. A/B testing is not working, and Latest Release does not detect the release even though, according to Apple Analytics, the sessions of newest release surpassed the sessions of old version.
When we analyzed console logs of previous version and the latest version, we noticed that Firebase Analytics are does not start on the latest version. Analytics v.7.6.0 started line is not printed. We tested 7.5.0 and 7.7.0, the line is not printed on them too. The line is printed on 7.4.0. The line also printed on Debug build. The problem occurs on Release build since 7.5.0.
We are suspecting the reason of Firebase console problems is related the lack of Analytics v.7.7.0 started log.

We cannot find anything on changelog and documentations.

Relevant Code:

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        ...
        FirebaseApp.configure()
        ...
        return true
    }

1 possible answer(s) on “Analytics is not started on 7.5.0 and later versions

  1. I’m going to close this here – since the fix will likely be part of CocoaPods 1.10.2. Track at CocoaPods/CocoaPods#10460

    In the meantime, adding the -ObjC option to the Other Linker Flags Build Setting is the right workaround.

    Thanks to @fthdgn for raising the issue and the repro case.