Firebase Analytics Plugin error during build


#1

I’ve just installed Firebase Analytics Plugin and I’m getting this error in Xcode when I try to run the App on my iPhone:

Terminating app due to uncaught exception 'com.firebase.core', reason: 'Default app has already been configured.

I’m obviously also using Firebase as a database in my App, but I’m not configuring it again. This is all the code I’ve added:

  logEvent(eventName, eventParams) {
    this.firebaseAnalytics.logEvent(eventName, eventParams)
      .then((res: any) => console.log(res))
      .catch((error: any) => console.error(error));
  }

For some reason Xcode views this Plugin as a fresh default app configuration?


#2

And the funny think is that it Builds and runs just fine in XCode!!