4

我有最新的 pod 版本 1.5.2,但是我从 firebase 安装 ml 套件时遇到问题,我得到了这个:

   Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "Firebase/MLVision":
  In Podfile:
    Firebase/MLVision

None of your spec sources contain a spec satisfying the dependency: `Firebase/MLVision`.

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.

Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.

有什么解决办法吗?

4

1 回答 1

3

在我的情况下的解决方案:

首先尝试: brew install rubysudo gem install然后更新 repo:

pod repo update

就是这样,您将安装 Firebase 的 ML Kit pod

我的播客文件:

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

target 'ML test' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for ML test
  pod 'Firebase/Core'
  pod 'Firebase/MLVision'

end
于 2018-05-12T08:41:17.793 回答