I have this in podfile:
pod \'Firebase/Core\'
pod \'Firebase/Messaging\'
but getting this error:
[!] Unable to find
If it still doesn't work, remove cocoapods directory rm -rf ~/.cocoapods
and re-setup cocoapods using pod setup
Hope that helps
None of the approaches mentioned worked for me. Here is how I made it to work, however:
Podfile
. pod install
after eachI hope it will help somebody.
Try to update pod repository
pod repo update
If doesn't help show log from
pod install --verbose
Edit:
try to add
source 'https://github.com/CocoaPods/Specs.git'
to your Podfile. If doesn't help probably there is a problem with your local pod repo. You can fix this using:
pod repo remove master
pod setup
pod install
try to delete the file podfile.lock
it helps with issue:
[!] CocoaPods could not find compatible versions for pod "Firebase/Core":
In snapshot (Podfile.lock):
Firebase/Core (= 4.8.1)
Check if your podfile looks like this and then execute pod install
:
platform :ios, '10.0'
use_frameworks!
target '<YOUR APP TARGET>' do
# Firebase
pod 'Firebase'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0'
end
end
end
had the same problem.
what really worked for me was gem uninstall cocoapods
where I found that I had 11 (!) cocoapods versions. I chose to uninstall all and then gem install cocoapods:1.4.0
All good now.