简体   繁体   English

CocoaPods 找不到 pod“Protobuf”的兼容版本

[英]CocoaPods could not find compatible versions for pod "Protobuf"

any of you who knows how to solve this issue having 2 libraries using a different version of another library in iOS flutter pods?你们有谁知道如何解决这个问题,让 2 个库在 iOS Flutter Pod 中使用另一个库的不同版本?

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另外,我尝试了 pod update 并没有解决我的问题

[!] 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.任何帮助将非常感激。

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.日志指出的问题是您使用的是特定版本的 Protobuf,而 mobile_scanner 依赖于无法解决的不同版本。

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).您可以尝试将 Protobuf 升级到使用 3.12 版或降级 mobile_scanner 以使用 Protobuf 3.11.4(我不建议这样做,因为它是一个依赖项)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM