Skip to content

FirebaseApp.configure() - ~100% CPU usage #15055

Open
@iwwwh

Description

@iwwwh

Description

Hi,

Calling FirebaseApp.configure() leads to extremely high CPU usage (90–100%) for about 10 seconds immediately after invocation.

I spent some time profiling and isolating this behavior, and I’ve traced the CPU spike specifically to the FirebaseApp.configure() call.

Products used in the app: Analytics, Auth, Crashlytics, Database, Firestore, Functions, Messaging, AdMob.

  • AdMob installed via GoogleMobileAdsSDK package 12.6.0 and is linked with Firebase
  • Messaging swizzling disabled

Commenting out FirebaseApp.configure() helps to fix the issue. I’m not sure how to debug it further to provide more details.

Reproducing the issue

Add the products listed above to the new Xcode project, run FirebaseApp.configure() in appDidFinishLaunching.

Note: tested only on real device.

Firebase SDK Version

11.15.0

Xcode Version

16.3

Installation Method

Swift Package Manager

Firebase Product(s)

All

Targeted Platforms

iOS

Relevant Log Output

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet
Replace this line with the contents of your Package.resolved.

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
Replace this line with the contents of your Podfile.lock!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions