CocoaPods 找不到 pod“Firebase/Database”的兼容版本 [Geofire 问题]

问题描述 投票:0回答:4

由于 firebase 插件不断更新,我遇到了 cocopod 错误,这个错误到底是什么以及如何解决这个问题? 我以前遇到过一个问题并解决了它,但使用较新的软件包和较旧的插件时,此错误不断弹出。

Analyzing dependencies
Pre-downloading: `GeoFire` from `https://github.com/jesussmile/geofire-objc.git`
firebase_auth: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_database: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_storage: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "Firebase/Database":
  In Podfile:
    GeoFire (from `https://github.com/jesussmile/geofire-objc.git`) was resolved to 4.3.0, which depends on
      GeoFire/Database (= 4.3.0) was resolved to 4.3.0, which depends on
        Firebase/Database (= 9.3.0)

    firebase_database (from `.symlinks/plugins/firebase_database/ios`) was resolved to 10.0.3, which depends on
      Firebase/Database (= 10.0.0)
flutter firebase cocoapods
4个回答
2
投票

你添加了吗

pod 'GeoFire', :git => 'https://github.com/mrdishant/geofire-objc'

在你的 Podfile 中?

添加到下面

target 'Runner' do

.....
pod 'GeoFire', :git => 'https://github.com/mrdishant/geofire-objc'
.....

end

0
投票

尝试

pod clean
。用于清理 pod 文件和缓存。

这是使用

pod install
安装 pod 文件完成的。


0
投票

我制作了

geofire-objc
存储库的副本,然后在文件
GeoFire.podspec
中将
 db.ios.dependency 'Firebase/Database', '10.0.3'
更改为我正在使用的 firebase 数据库版本,在本例中为 10.0.3 。现在工作正常了。


0
投票

这对我有用,我放置了

pod 'GeoFire', :git => 'https://github.com/mrdishant/geofire-objc'

进入

target 'Runner' do

.....
pod 'GeoFire', :git => 'https://github.com/mrdishant/geofire-objc'
.....

end

但我也在 Pod 文件中将我的平台从 :ios, "10.0" 更改为 "12.0"```

© www.soinside.com 2019 - 2024. All rights reserved.