簡體   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