gpt4 book ai didi

swift - CocoaPods 找不到 pod "FirebaseCore": In snapshot (Podfile. 锁的兼容版本)

转载 作者:可可西里 更新时间:2023-11-01 00:38:58 27 4
gpt4 key购买 nike

我正在尝试添加 Geofirestore我在 GitHub 上找到的 pod 所以我可以将地理位置经度和纬度添加到社交媒体应用程序中的帖子中。我的 pod 文件看起来像这样

pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Firestore'
pod 'Firebase/Storage', '~> 4.0'
pod 'Geofirestore'

我在我的终端中运行了 pod repo update 和 pod install 但它没有工作,我收到了这个错误。

[!] CocoaPods could not find compatible versions for pod "FirebaseCore":
In snapshot (Podfile.lock):
FirebaseCore (= 4.0.20, ~> 4.0)

In Podfile:
Firebase/Core was resolved to 4.13.0, which depends on
FirebaseAnalytics (= 4.2.0) was resolved to 4.2.0, which depends on
FirebaseCore (~> 4.0)

Firebase/Core was resolved to 4.13.0, which depends on
FirebaseCore (= 4.0.20)

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

[!] Automatically assigning platform `ios` with version `11.4` on target `My App` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform

最佳答案

您的 Podfile 中有 'Geofirestore':如错误消息所示,它需要 FirebaseCore (~> 5.0.3)

您的 Podfile 中有 'Firebase/Storage', '~> 4.0',这会让您使用 FirebaseCore (~> 4.0)

要同时使用两者,您需要从 Firebase 4 升级到 Firebase 5。即你需要:

pod 'Firebase/Storage', '~> 5.0'

关于swift - CocoaPods 找不到 pod "FirebaseCore": In snapshot (Podfile. 锁的兼容版本),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52033205/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com