我有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.
任何解决方案?
答案 0 :(得分:2)
我的案例中的解决方案:
首先尝试:
brew install ruby
,sudo gem install
然后更新回购:
pod repo update
就是这样,你将安装Firebase的ML Kit pod
我的Podfile:
# 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