I'm trying to install Firebase via CocoaPods for my Objective-C iOS Application. My Podfile is as follows:
target 'RandomName' do pod 'Firebase/Core' pod 'Firebase/AdMob' end
When I run pod install
, I get the following error:
[!] Unable to satisfy the following requirements: - `Firebase/Core` required by `Podfile` None of your spec sources contain a spec satisfying the dependency: `Firebase/Core`. You have either: * out-of-date source repos which you can update with `pod repo update`. * mistyped the name or version. * not added the source repo that hosts the Podspec to your Podfile. Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
The latest version of CocoaPods is installed, and I have tried running pod repo update. Having a Podfile of the following works fine, but when I try to @import Firebase;
in my AppDelegate.m
file, Xcode cannot find the module.
target 'RandomName' do pod 'Firebase' end
However, the following combination does not install:
target 'RandomName' do pod 'Firebase' pod 'Firebase/AdMob' end
Any help would be appreciated!
Usually, this happens due to visual studio or IntelliJ not able to find the path or associated plugin or extension. Open your terminal and run sudo gem uninstall cocoapods sudo gem install cocoapods restart IDE or Editor Now your error must be solved.
I am having the same problem. Check what version of Firebase is installed when you use pod 'Firebase'. For me it installs 2.4.3 which is an old version. The docs say that the pod should install 3.2. using that pod. It explains why the other pods don't work as they are part of Firebase 3. Pod update doesn't update Firebase to the latest version either. Even forcing a version doesn't work. It can't seem to find the new Firebase versions even though they are in the same podspec.
Here is how I solved it:
pod repo remove master
) and use pod setup
to make a new oneuse the following in your pod file
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/Core'
(use whatever you want, just don't use 'Firebase')
pod install
Running 'pod repo remove master' to remove the Pods repo //removes the library
Running 'pod setup' //clones the updated git repo for specs which takes long time as its size is beyond 300K (Be patient!)
Running 'pod install' //problem is solved
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