iOS ML Kit - Невозможно установить с кокаподами - PullRequest
0 голосов
/ 12 мая 2018

У меня версия pod 1.5.2, последняя, ​​но у меня проблема с установкой ml kit из firebase, я получаю следующее:

   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.

Есть решение?

1 Ответ

0 голосов
/ 12 мая 2018

Решение в моем случае:

Сначала попробуйте: brew install ruby, sudo gem install, а затем обновите репо:

pod repo update

И это`После этого вы будете устанавливать модули ML Kit из Firebase

Мой подфайл:

# 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
...