You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

执行pod install遇FirebaseFirestore版本兼容问题求助

解决CocoaPods FirebaseFirestore版本冲突问题

问题原因

Podfile.lock中已锁定FirebaseFirestore版本为8.9.1,但Podfile里指定的是来自git仓库的8.9.0版本,两者版本约束冲突,导致CocoaPods无法找到满足条件的版本。

具体解决步骤

  • 删除项目根目录下的Podfile.lock文件,清除旧的版本锁定记录
  • 清理本地Pod缓存,避免残留旧版本文件:
    pod cache clean --all
    
  • 更新Pod仓库源,确保获取到最新版本信息:
    pod repo update
    
  • 调整Podfile中的FirebaseFirestore版本,使其与原锁定版本一致,修改为:
    pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '8.9.1'
    
  • 执行安装命令:
    pod install
    

补充说明

若想统一使用8.9.0版本,需确保项目中所有依赖FirebaseFirestore的组件都兼容该版本,此时删除Podfile.lock后直接执行pod install --repo-update即可,CocoaPods会重新解析并安装匹配的版本。

内容的提问来源于stack exchange,提问作者FlutterBuilder

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.02 07:02:12