user3693860
user3693860

Reputation: 1

App crashing [FIRApp appWasConfiguredTwice:usingOptions:]

iOS Extension - Fatal Exception: com.firebase.core Default app has already been configured.

enter image description here

Upvotes: 0

Views: 805

Answers (1)

Muhammad Zeeshan
Muhammad Zeeshan

Reputation: 2451

From the message it is clear that FIRApp's configure function is called twice by your app. It is supposed to call once. The best place to call it, is in the func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool in your AppDelegate.

In order to identify from where it is being called you can use 2 approaches.

  1. Press CMD + Shift + F and search for configure keyword and identify from the results.
  2. Add a symbolic break point and app will pause when configure function get called. See the screenshots below:

Screenshot 1 Screenshot 2

Upvotes: 1

Related Questions