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

前端 未结 15 2002
旧时难觅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: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

提交回复
热议问题