[英]Upgraded to Flutter 3.7. M1 mac - have Pod Install Issue
我通过 flutter 升级到 3.7 升级了 flutter。 现在,当我 flutter 构建 macos 我的应用程序时,我遇到了以下问题。
[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":
In snapshot (Podfile.lock):
Firebase/CoreOnly (= 9.3.0, ~> 9.3.0)
In Podfile:
firebase_auth (from `Flutter/ephemeral/.symlinks/plugins/firebase_auth/macos`) was resolved to 3.11.2, which depends on
Firebase/CoreOnly (~> 9.6.0)
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* changed the constraints of dependency `Firebase/CoreOnly` inside your development pod `firebase_auth`.
You should run `pod update Firebase/CoreOnly` to apply changes you've made.
我已经尝试了每一个建议,例如
sudo arch -x86_64 gem 安装 ffi
arch -x86_64 pod 安装
arch -x86_64 pod install --repo-更新
删除 Podfile。
删除 PodLock。
有没有其他人遇到过同样的问题并且有机会为我解决?
能够使用 flutter 清理和构建我的应用程序 flutter 3.7
解决方案:与Firebase的版本有关,好像是版本和依赖冲突的问题。 在 Podspec 中,将每个 firebase 相关项替换如下:firebase_core: ^1.20.1 TO firebase_core: 1.20.1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.