Cocoapods找不到Pod“ Protobuf”的兼容版本。

发布于 2025-02-06 14:18:59 字数 891 浏览 1 评论 0原文

你们中有人知道如何使用iOS flutter Pod中的另一个库的其他版本的另一个库来解决这个问题?

我看过很多帖子,但不确定我是否做错了,因为它们对我不起作用。

另外,我尝试了POD更新,但无法解决我的问题,

[!] CocoaPods could not find compatible versions for pod "Protobuf":
  In snapshot (Podfile.lock):
    Protobuf

  In Podfile:
    flutter_blue (from `.symlinks/plugins/flutter_blue/ios`) was resolved to 0.0.1, which depends on
      flutter_blue/Protos (= 0.0.1) was resolved to 0.0.1, which depends on
        Protobuf (~> 3.11.4)

    mobile_scanner (from `.symlinks/plugins/mobile_scanner/ios`) was resolved to 0.0.1, which depends on
      GoogleMLKit/BarcodeScanning (~> 2.6.0) was resolved to 2.6.0, which depends on
        MLKitBarcodeScanning (~> 1.7.0) was resolved to 1.7.0, which depends on
          MLKitVision (~> 3.0) was resolved to 3.0.0, which depends on
            Protobuf (~> 3.12)

任何帮助都将不胜感激。

any of you who knows how to solve this issue having 2 libraries using a different version of another library in iOS flutter pods?

I've seen a lot of posts but not sure if I'm doing something wrong because they did not work for me.

Also, I've tried pod update and does not solve my issue

[!] CocoaPods could not find compatible versions for pod "Protobuf":
  In snapshot (Podfile.lock):
    Protobuf

  In Podfile:
    flutter_blue (from `.symlinks/plugins/flutter_blue/ios`) was resolved to 0.0.1, which depends on
      flutter_blue/Protos (= 0.0.1) was resolved to 0.0.1, which depends on
        Protobuf (~> 3.11.4)

    mobile_scanner (from `.symlinks/plugins/mobile_scanner/ios`) was resolved to 0.0.1, which depends on
      GoogleMLKit/BarcodeScanning (~> 2.6.0) was resolved to 2.6.0, which depends on
        MLKitBarcodeScanning (~> 1.7.0) was resolved to 1.7.0, which depends on
          MLKitVision (~> 3.0) was resolved to 3.0.0, which depends on
            Protobuf (~> 3.12)

Any help would be really appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

柠檬 2025-02-13 14:18:59

如日志所述的问题是,您使用的是Protobuf的特定版本,而Mobile_scanner取决于无法解决的不同版本。

您可以尝试将Protobuf升级到使用3.12版本,也可以降低Mobile_scanner使用Protobuf 3.11.4(我不建议因为它是依赖性)。

The issue as the logs states is that you are using a specific version of Protobuf while mobile_scanner depends on a different version which can't be resolved.

you can either try to upgrade Protobuf to using version 3.12 or downgrading mobile_scanner to use Protobuf 3.11.4(which I don't recommend since it is a dependency).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文