Cocoapods找不到Pod“ Protobuf”的兼容版本。
你们中有人知道如何使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如日志所述的问题是,您使用的是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).