【问题标题】:firebase_ml_vision breaks IOS build, fix for Windows machinefirebase_ml_vision 中断 IOS 构建,修复 Windows 机器
【发布时间】:2020-07-24 18:37:48
【问题描述】:

我有一台 Windows 机器,想为我的 Iphone 构建我的颤振应用程序。我正在使用 codemagic.com 来构建我的应用程序。使用 firebase_ml_vision 依赖项时,在为 iOS 构建应用程序时会出现错误,如此处所示,https://github.com/flutter/flutter/issues/28625。我不确定如何在我的 Windows 机器上解决此问题,因为我无法访问 iOS 构建文件。

这是构建 iOS 应用时的错误消息

返回本地 [!] CocoaPods 找不到 pod "firebase_ml_vision" 的兼容版本: 在 Podfile 中: firebase_ml_vision(来自.symlinks/plugins/firebase_ml_vision/ios)

Specs satisfying the `firebase_ml_vision (from `.symlinks/plugins/firebase_ml_vision/ios`)` dependency were found, but they required a higher minimum deployment target.

【问题讨论】:

  • 你能分享你的 Podfile 吗?请确保您的 Podfile 顶部有“平台:ios,'9.0'”。另外请更新到最新版本的 Firebase ML:删除您的 Pods 目录,删除 Podfile.lock 文件,运行“pod cache clean --all”,然后运行“pod update”。应使用最新的 GoogleAppMeasurement 6.5.0。

标签: ios windows firebase flutter firebase-mlkit


【解决方案1】:

如果您使用的是 firebase_ml_vision: ^0.10.0 或更高版本,则必须将您的部署目标更改为 10.0:

在您的 Podfile 中:platform :ios, '10.0'

在您的 Xcode 项目中,将 iOS Deployment Target 设置为 10.0

然后,在您的终端中运行以下命令以使用新状态进行构建:

flutter clean \
    && rm ios/Podfile.lock pubspec.lock \
    && rm -rf ios/Pods ios/Runner.xcworkspace \
    && flutter build iOS

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-01-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-05
    • 1970-01-01
    相关资源
    最近更新 更多