我正在尝试使用此命令更新我的项目的 Pod:
cd ios && pod update && Pod install && cd -
,但我收到此错误:
[!] CocoaPods could not find compatible versions for pod "GoogleDataTransport":
In Podfile:
firebase_messaging (from `.symlinks/plugins/firebase_messaging/ios`) was resolved to 15.1.0, which depends on
Firebase/Messaging (= 11.0.0) was resolved to 11.0.0, which depends on
FirebaseMessaging (~> 11.0.0) was resolved to 11.0.0, which depends on
GoogleDataTransport (~> 10.0)
mobile_scanner (from `.symlinks/plugins/mobile_scanner/ios`) was resolved to 5.2.2, which depends on
GoogleMLKit/BarcodeScanning (~> 6.0.0) was resolved to 6.0.0, which depends on
MLKitBarcodeScanning (~> 5.0.0) was resolved to 5.0.0, which depends on
MLKitCommon (~> 11.0) was resolved to 11.0.0, which depends on
GoogleDataTransport (< 10.0, >= 9.4.1)
我尝试清理我的项目
flutter clean
删除了我的pubspec.lock
删除了我的podfile.lock
更新了我的 cocoapods
gem install cocoapods
pod repo update
然后再次领取我的包裹
flutter pub get
但是没有任何作用,我尝试在项目的先前版本上执行相同的操作,但它也不再起作用了。
这是我的软件包版本:
firebase_core: ^3.4.0
firebase_core_web: ^2.17.5
firebase_messaging: ^15.1.0
firebase_messaging_web: ^3.8.13
mobile_scanner: ^5.2.2
我的扑动版本:
Flutter 3.24.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 80c2e84975 (5 weeks ago) • 2024-07-30 23:06:49 +0700
Engine • revision b8800d88be
Tools • Dart 3.5.0 • DevTools 2.37.2
尚无与 Firebase 11.x 兼容的 GoogleMLKit 版本。同时,继续使用 Firebase 10.x.