Upgraded Firebase - Getting error on FirebaseApp.configure()

2.1k Views Asked by At

I upgraded Firebase today and now I am having a very unusual problem

Use of unresolved identifier FirebaseApp.

I have done everything as per the documentation provided by firebase here. I have insert GoogleService-Info.plist on my project and pod i have install are as follows:

pod 'Firebase/Core
pod 'Firebase/Database
pod 'Firebase/Messaging

I am using XCode 7.3.1 and my deployment target is 9.0

Any insight you can give is greatly appreciated! Thank you!

5

There are 5 best solutions below

1
Chris Edgington On

It seems this is a potential bug in the latest release.

Try specifying import FirebaseCore instead.

0
Callum Boddy On

I had the same problem. They have renamed it to FIRApp.

Use FIRApp.configure() instead

0
firstthumb On

On the terminal, run

pod update

solves the problem

0
Kris On

I had a similar issue. Try deleting and uploading you Google file this way:

Instead of dragging the Google file directly into your Xcode project, right click the folder (inside your Xcode project) that you would like to save the Google file and click "Add Files to '[App Name]'..." and add GoogleService-info.plist that way. Also make sure the file is called "GoogleService-info.plist".

3
Eddan Zhang On
  1. Install relative Firebase packages

    pod 'Firebase/Analytics'
    
  2. Import Firebase in Xcode

    #import <Firebase.h>
    
  3. Add firebase configure. I attached screenshot

    if ([FIRApp defaultApp] == nil) {
        [FIRApp configure];
    }
    

Screenshot