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
<Try to use pod repo update
and pod install
again.
I had the same problem and I resolved it like this.
pod update ...
(using only Firebase/Core and Analytics)
I am using xCode version 8.2.1 Hope thats will help to someone.
If the project is older and there is problem with the other pods, you can update only the pod you want: How to update a single pod without touching other dependencies
In my case with ionic cordova plugin I had just add:
#import "FIRApp.h"
to CDVGoogleAnalytics.m file
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)
Update your pods type in terminal
pod update
then install the pod agian, worked for me
turns out that hoangpx answer is the right way to fix your bug, changing the pod module's name helps. But remember that when you try to run pod install it appears (or should if isn't already fixed):
Note: as of Cocoapods 1.0 ‘pod repo update’ does not happen on ‘pod install’ by default.
meaning you should do pod Firebase update
first for updating to version 3.2.0 and later pod install