【问题标题】:Installing Geofirestore with cocoapods?用 cocoapods 安装 Geofirestore?
【发布时间】:2020-11-24 02:17:04
【问题描述】:

我正在尝试使用 Cocoapods 安装 Geofirestore。我将pod 'Geofirestore' 放入我的 podfile 中,但出现错误:

Geofirestore was resolved to 0.1.0, which depends on FirebaseCore (~> 5.0.3)

如何安装 Geofirestore?

我的 podfile 是这样的:

pod 'Firebase/Firestore'
pod 'Firebase/Analytics'
pod 'Firebase/Storage'
pod 'Firebase/Auth'
pod 'Firebase/Storage'
pod 'FirebaseFirestoreSwift', '~> 7.0-beta'
pod 'SDWebImageSwiftUI'
pod 'Geofirestore'

【问题讨论】:

  • 显示完整的 Podfile。 Geofirestore 具有旧的依赖项,因此如果您请求较新的版本,可能会发生冲突。
  • 我刚刚更新了问题

标签: ios xcode cocoapods geofirestore


【解决方案1】:

Geofirestore 与 FirebaseFirestoreSwift 不兼容,因为 Geofirestore 依赖于 Firebase 5.x,而 FirebaseFirestoreSwift 是在 Firebase 6.x 中引入的。

两种选择:

  • 与 Geofirestore 联系或与 Geofirestore 合作以更新以使用最新的 Firestore 版本。
  • 放弃 FirebaseFirestoreSwift 并为其他 Firebase pod 使用旧版 Firebase。

【讨论】:

  • 您知道另一个与 FirebaseFirestoreSwift 兼容的具有类似功能的库吗?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2014-03-06
  • 2022-10-26
  • 2021-03-30
  • 2020-04-30
  • 2018-03-05
  • 1970-01-01
  • 2014-01-12
相关资源
最近更新 更多