iOS - Firebase error: Use of unresolved identifier FIRApp running supplied code

前端 未结 15 2006
旧时难觅i
旧时难觅i 2021-02-02 08:08

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

<
相关标签:
15条回答
  • 2021-02-02 08:51

    I just resoved it by change Firebase.configure() to FIRApp.configure()

    Chill :)

    0 讨论(0)
  • 2021-02-02 08:51

    Updated cocoapods to version 1.0.x and then pod install resolved my issue

    pod --version (to check your current version)

    0 讨论(0)
  • 2021-02-02 08:54

    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

    0 讨论(0)
提交回复
热议问题