首页 > 解决方案 > CocoaPods 不更新 pod,pod FirebaseFirestore 的兼容版本

问题描述

我需要将我的 firebase pod 更新到最新版本,但是当我尝试在我的项目上运行 pod update 或 pod install 时出现以下错误

Update all pods
Updating local specs repositories

Analyzing dependencies

Pre-downloading: `MessageKit` from `https://github.com/MessageKit/MessageKit.git`, branch `3.0.0-swift5`

[!] CocoaPods could not find compatible versions for pod "FirebaseFirestore": 
In Podfile:

Firebase/Firestore was resolved to 6.14.0, which depends on
  FirebaseFirestore (~> 1.8.2)

Geofirestore was resolved to 0.1.0, which depends on
  FirebaseFirestore (~> 0.12.3)

我的播客文件是:

platform :ios, '13.0'

target 'ApproachApp' do

use_frameworks!

pod 'Firebase/Auth', '~> 6.14.0'
pod 'Firebase/Firestore'
pod 'Firebase/Storage'
pod 'FirebaseUI/Storage'
pod 'Toast-Swift', '~> 5.0.0'
pod 'FacebookCore'
pod 'FacebookLogin'
pod 'Geofirestore'
pod 'UPCarouselFlowLayout'
pod 'MessageKit', :git => 'https://github.com/MessageKit/MessageKit.git', :branch => '3.0.0-swift5'
end

我还尝试了一个全新的项目和相同的 pod 配置,但没有运气。

谢谢

标签: iosswiftfirebasecocoapods

解决方案


问题是Geofirestore pod 的 Firestore 依赖于 Firestore 的非常旧的 beta 版本。

您可能想向 Geofirestore 提出问题,但自 2018 年 7 月以来似乎没有更新。


推荐阅读