繁体   English   中英

Cocoapods 不会安装?

[英]Cocoapods will not install?

[!] Unable to find a specification for `Firebase/Analytics`

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

过去,我已经轻松地向许多项目添加了 pod,但现在,不会安装新的 pod。 我运行了 pod repo update,我更新了我的 Cocoapods 版本,变成了 use_frameworks! 断断续续,我没有想法。

这是 Podfile

# Uncomment the next line to define a global platform for your project
platform :ios, '13.0'

target 'My App' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!
  #use_modular_headers!

  # Pods for My App
  pod 'RxSwift'
  pod 'RxAlamofire'
  pod 'Alamofire'
  pod 'Fabric'
  pod 'Crashlytics'
  source 'https://github.com/lixiang1994/Specs'
  pod 'Loading'

end

将此添加到文件的顶部:

source 'https://github.com/CocoaPods/Specs.git'

如果没有其他来源,Cocoapods 将默认添加该来源。 通过添加你自己的源代码 Cocoapods 假设一切都可以在那里找到。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM