iOS ML Kit-无法与cocapods一起安装

埃格宗·阿里菲

我有最新的Pod版本1.5.2,但是从firebase安装ml kit时遇到问题,我得到了:

   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.

有什么办法吗?

埃格宗·阿里菲

我的解决方案:

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

pod repo update

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

我的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

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

IOS ML Kit 人脸跟踪无法正常工作

在没有cocapods的iOS上使用Firebase ML Kit时,GoogleMobileVision中的链接器错误

ML Kit iOS人脸检测错误

将ML Kit与NNAPI一起使用

iOS Firebase ML Kit 简单音频识别“无法为给定模型创建 TFLite 解释器”

Firebase ML KIT无法识别古吉拉特语

Firebase ML kit API是否可以与离子一起使用?

Ml Kit无法检测到护照MRZ代码?

Firebase ML Kit 人脸检测,无法检索实例 ID

React-Native Firebase ML Kit 视觉图像标签不适用于 iOS

Firebase ML Kit proguard 问题

iOS Sprite Kit didBeginContact无法正常工作

iOS Sprite Kit BodyWithBodies无法正常工作

Sprite Kit不再与iOS10一起播放声音

未安装Google Play服务的Android Mobile Vision API和ML Kit

使用Firebase ML Kit无法读取更多30个字符的条形码

无法从ML Kit加载自定义模型:FirebaseMLException:加载任务失败

添加ML Kit后无法解决:com.google.android.gms:play-services:15.0.1

为什么 Firebase ML Kit 每次都为同一张脸检测不同的轮廓值

Scene Kit SCNMorpher无法与SCNSphere等原语一起使用

pyspark ML LabeledPoint无法与LinearRegression一起使用

无法访问“ ML Kit Vision快速入门示例应用程序”中正在处理的当前帧

Firebase ML Kit功能是否异步,以便我可以使用同一检测器运行多个检测?

添加 firebase ML-kit 时的依赖项冲突

ML Kit条形码扫描:无效的图像数据大小

如何使用Firebase ML Kit查找图像中的标记?

如何使用Firebase ML Kit识别条形码?

ML Kit 文本识别 + 西里尔文

Google ML Kit:正在等待文本识别模型的下载