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

Flutter iOS构建报错:FirebaseAppCheck依赖版本不兼容求助

解决方案
  • 彻底清理依赖缓存

    • 删除iOS端的Pod锁定文件和Pods目录:
      rm ios/Podfile.lock
      rm -rf ios/Pods
      
    • 清理Flutter的pub缓存并重新拉取依赖:
      flutter pub cache clean
      flutter pub get
      
  • 强制统一Firebase Pod版本
    在ios/Podfile的最顶部(target 'Runner' do代码块之前)添加以下代码,锁定所有Firebase相关Pod的版本为插件要求的10.22.0-beta:

    $FirebaseSDKVersion = '10.22.0-beta'
    
  • 确认部署版本配置一致

    • 打开ios/Runner.xcworkspace,在Xcode中选中Runner项目,检查Deployment Info中的iOS版本是否为17.0
    • 确保ios/Podfile里的部署版本设置正确:platform :ios, '17.0'
  • 更新所有Firebase插件
    将pubspec.yaml中所有Firebase相关插件(如firebase_core、firebase_app_check等)更新到兼容版本,执行以下命令批量更新:

    flutter pub upgrade firebase_core firebase_app_check
    
  • 重新构建项目

    cd ios
    pod install --repo-update
    cd ..
    flutter build ios
    

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.26 14:40:01