When trying to configure XCode to work with Firebase 3, using the code in the setup docs gives me an error:
https://firebase.google.com/docs/ios/setup#add_the_sdk
import UIKit
import Contacts
import Firebase
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
//contacts
var contactStore = CNContactStore()
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
FIRApp.configure() <-- Use of unresolved identifier 'FIRApp'
// Override point for customization after application launch.
return true
}
I think this is the correct solution:
pod repo update
pod update
But I had the same issue and solved it doing the following steps on the command line:
pod repo update
pod 'Firebase'
line from my Podfilepod install
(this removed the old Firebase)pod 'Firebase'
line again.pod install
(added the new Firebase)2nd and 3rd steps were the key I think, otherwise CocoaPods didn't try to update it. As I said maybe this could've been solved by doing pod update
but now I can't go back and try again.
After all of this you should see something like:
Installing Firebase (3.2.0)
Installing FirebaseAnalytics (3.2.0)
Installing FirebaseInstanceID (1.0.6)
Installing GoogleInterchangeUtilities (1.2.1)
Installing GoogleSymbolUtilities (1.1.1)
Installing GoogleUtilities (1.3.1)
I had the same error, resolved easily. Close the project. Open pod file then update from
pod 'Firebase', '>= 2.5.1'
to
pod 'Firebase/Core'
pod 'Firebase/Database'
Then open terminal, located to your pod file in project folder, enter :pod update
. Make sure you see 2 lines
Installing Firebase 3.2.0 (was 2.5.1)
Installing FirebaseDatabase (3.0.1)
Then you're good to go
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With