Cocoapods: Unable to find a specification for `Firebase/Core`

和自甴很熟 提交于 2019-11-30 01:30:01

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 below commands:

pod repo remove master
pod repo update
pod install --verbose
Yoni Katz

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

None of the approaches mentioned worked for me. Here is how I made it to work, however:

  1. Comment out all of your pods in your Podfile.
  2. Comment them back in one-by-one and run pod install after each
  3. Clean and run

I hope it will help somebody.

If it still doesn't work, remove cocoapods directory rm -rf ~/.cocoapods and re-setup cocoapods using pod setup

Hope that helps

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.

This worked for me by updating cocoapods and my pod repo:

sudo gem install cocoapods
pod repo update
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!