Cocoapods:无法找到`Firebase/Core`的规格

Mir*_*lic 32 ios cocoapods firebase swift

我在podfile中有这个:

pod 'Firebase/Core'
pod 'Firebase/Messaging'
Run Code Online (Sandbox Code Playgroud)

但得到这个错误:

[!]无法找到规格 Firebase/Core

我试过pod 'Firebase'还是找不到它.

Podfile:

# Uncomment this line to define a global platform for your project
# platform :ios, '8.0'
# Uncomment this line if you're using Swift
use_frameworks!

target 'caffetouch manager' do
    pod 'Firebase/Core'
    pod 'Firebase/Messaging'
    pod 'Alamofire', '~> 4.0.0'
    pod 'AlamofireNetworkActivityIndicator', '~> 2.0.1'
    pod 'IQKeyboardManagerSwift', '~> 4.0.6'
    pod 'MZFormSheetPresentationController', '~> 2.4.2'
    pod 'Kingfisher', '~> 3.1.3'
    pod "GMStepper"
    pod 'DKImagePickerController', '~> 3.4.0'
    pod 'Siren', '~> 1.0.2'
    pod 'Eureka', '~> 2.0.0-beta.1'
    pod 'SwiftyJSON'
    pod 'ObjectMapper', '~> 2.1'
    pod 'NVActivityIndicatorView'
    pod 'SwiftDate', '~> 4.0.5'
    pod 'SimpleAlert' '~> 2.0.1'

    pod 'BTNavigationDropdownMenu', :git => 'https://github.com/PhamBaTho/BTNavigationDropdownMenu.git', :branch => 'swift-3.0'
    pod 'ENSwiftSideMenu', :git => 'https://github.com/evnaz/ENSwiftSideMenu.git', :branch => 'master'
    pod 'SkyFloatingLabelTextField', git: "https://github.com/MLSDev/SkyFloatingLabelTextField.git", branch: "swift3"
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
Run Code Online (Sandbox Code Playgroud)

Pio*_*ski 76

尝试更新pod存储库

pod repo update
Run Code Online (Sandbox Code Playgroud)

如果没有帮助显示日志

pod install --verbose
Run Code Online (Sandbox Code Playgroud)

编辑:

尝试添加

source 'https://github.com/CocoaPods/Specs.git'
Run Code Online (Sandbox Code Playgroud)

你的Podfile.如果没有帮助,可能是您的本地pod repo存在问题.您可以使用以下方法修复此

pod repo remove master
pod setup
pod install
Run Code Online (Sandbox Code Playgroud)


归档时间:

查看次数:

19130 次

最近记录:

6 年,2 月 前