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

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

    I think this is the correct solution:

    1. pod repo update
    2. pod update

    But I had the same issue and solved it doing the following steps on the command line:

    1. pod repo update
    2. Commented the pod 'Firebase' line from my Podfile
    3. pod install (this removed the old Firebase)
    4. Added the pod 'Firebase' line again.
    5. 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)

提交回复
热议问题