通过 CocoaPods 使用 GoogleMLKit 0.61.0 会将 Firebase 库降级到 6.20.0

Using GoogleMLKit 0.61.0 thru CocoaPods is downgrading Firebase libs to 6.20.0

通过 CocoaPods 使用 GoogleMLKit 0.61.0 正在将 Google Firebase 库从我项目中定义的最新版本降级到下面详述的旧版本

before MLKit - Firebase/Analytics (6.27.0)
after MLKit  - Firebase/Analytics (6.20.0)

before MLKit - Firebase/Core (6.27.0):
after MLKit  - Firebase/Core (6.20.0):

before MLKit  - nanopb (~> 1.30905.0)
before MLKit  - FirebaseCore (6.8.0):
before MLKit  - FirebaseCoreDiagnostics (~> 1.3)
after MLKit   - nanopb (= 0.3.9011)
after MLKit   - FirebaseAnalyticsInterop (1.5.0)
after MLKit   - FirebaseCore (6.6.4):
after MLKit   - FirebaseCoreDiagnostics (~> 1.2)
after MLKit   - FirebaseCoreDiagnosticsInterop (~> 1.2)

我的播客文件:

...
  pod 'Firebase/Crashlytics'
  pod 'Firebase/Analytics'
  pod 'Firebase/Performance'
  pod 'GoogleMLKit/BarcodeScanning', '= 0.61.0'. //Latest GoogleMLKit version
  pod 'GoogleMLKit/TextRecognition', '= 0.61.0'
...

根据 changelog,它对 Firebase 没有任何依赖性,但当我尝试使用它时,它仍然在更新 Firebase。 而且我们不能使用旧的 Firebase 版本,因为我们在那里遇到了很多问题和崩溃

This is the first release of ML Kit as a standalone SDK, independent from Firebase.
This SDK offers all the on-device APIs that were previously offered through the ML Kit for Firebase SDK. 

如有任何帮助,我们将不胜感激

更新: 2020 年 7 月 15 日:运行 pod update.

正如@Dong Chen 所指出的,此问题现已在 MLKitCommon 版本 0.61.1 中得到解决。


这看起来像是 MLKitCommon pod 中的错误。它取决于 GoogleDataTransport 的 3.x 版本,而 Firebase 是几个版本之后的版本。 CocoaPods 安装找到了几个月前的 Firebase 兼容版本。

我们刚刚为 MLKitCommon CocoaPod 发布了补丁版本 0.61.1。请安装最新的 GoogleMLKit 并让我们知道问题是否已解决。