CocoaPods 找不到 pod "Protobuf" 的兼容版本



谁知道如何解决这个问题,有两个库使用不同版本的另一个库在iOS扑动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)

任何帮助都将非常感激。

日志显示的问题是你正在使用一个特定版本的Protobuf,而mobile_scanner依赖于一个不同的版本,无法解决。

你可以尝试升级Protobuf到使用版本3.12或降级mobile_scanner使用Protobuf 3.11.4(我不建议,因为它是一个依赖)。

最新更新