程序问答   发布时间:2022-06-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了在 flutter /firebase 项目中缺少来自 cocopods 的兼容版本大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

如何解决在 flutter /firebase 项目中缺少来自 cocopods 的兼容版本?@H_197_1@ 开发过程中遇到在 flutter /firebase 项目中缺少来自 cocopods 的兼容版本的问题如何解决?下面主要结合日常开发的经验,给出你关于在 flutter /firebase 项目中缺少来自 cocopods 的兼容版本的解决方法建议,希望对你解决在 flutter /firebase 项目中缺少来自 cocopods 的兼容版本有所启发或帮助;

我的 Flutter/firebase 项目中安装的 pod 出现了一个大问题。

每次“pod install”后都会收到此消息:

"Analyzing dependencIEs
cloud_firestore: Using Firebase SDK version '8.0.0' defined in 'firebase_core'
cloud_functions: Using Firebase SDK version '8.0.0' defined in 'firebase_core'
firebase_analytics: Using Firebase SDK version '8.0.0' defined in 'firebase_core'
firebase_auth: Using Firebase SDK version '8.0.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '8.0.0' defined in 'firebase_core'


[!] CocoaPods Could not find compatible versions for pod "cloud_firestore":
  In Podfile:
    cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`)

Specs satisfying the `cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`)` dependency were found,but they required a higher minimum deployment target."

我在 Mac M1 上,但堆栈溢出的大多数技巧都无济于事。

已经安装了“sudo arch -x86_64 gem install ffi”和“arch -x86_64 pod install”

以下是依赖项:

Flutter:
    sdk: Flutter
  firebase_core: ^1.3.0
  firebase_analytics: ^8.1.2
  firebase_auth: ^1.4.1
  cloud_firestore: ^2.2.0+1
  cloud_functions: ^1.1.2

删除一个后,上面的给定消息会出现一个新的 pod。

下班后我真的不知道该做什么...

谢谢!

解决方法@H_197_1@

你可以试试这个方法

首先清理 Flutter,然后从 ios 文件夹中删除 .symlinks、Pods、Podfile.lock 和 Runner.xcworkspace。

然后运行 ​​pub get。

希望它对你有用。

大佬总结

以上是大佬教程为你收集整理的在 flutter /firebase 项目中缺少来自 cocopods 的兼容版本全部内容,希望文章能够帮你解决在 flutter /firebase 项目中缺少来自 cocopods 的兼容版本所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。