[英]Flutterfire Package Dependency errors on MacOs build
我刚刚(通过 GitHub)将我的应用程序存储库从我的 WIn 11 机器转移到我的 Mac Mini M1 (Ventura) 以开始在 iOS 上进行测试。一切进展顺利,直到我在执行 pod 安装时收到此消息:
[15:20]
[!] CocoaPods could not find compatible versions for pod "Firebase/Database":
In Podfile:
firebase_database (from .symlinks/plugins/firebase_database/ios) was resolved to 10.0.9, which depends on
Firebase/Database (= 10.3.0) flutter_geofire (from .symlinks/plugins/flutter_geofire/ios) was resolved to 0.0.1, which depends on
GeoFire (~> 4.0) was resolved to 4.1.0, which depends on
Firebase/Database (~> 6.0)
我已经尝试了我在 SO 上看到的所有与此相关的答案,但无济于事。
该应用程序在 Win11 上为 Android 构建良好,但在为 iOS 构建时出现上述依赖项错误。
这是我用来清理 Mac 环境的命令序列:
Delete pubspec.lock
Change to iOS directory
rm -rf Pods
rm -rf Podfile.lock
rm -rf ~/Library/Flutter/.pub-cache/hosted/pub.dartlang.org/
pod cache clean --all
flutter clean
flutter pub get
pod repo update
pod install
还有其他人用 flutterfire 包经历过这个吗? 欢迎任何建议。 :-)
我正在尝试降低其中一些的版本,但如您所知,这是一个雷区,而不是最终解决方案。
尝试删除 Podfile.lock 文件,然后再次运行 pod install。 如果这没有帮助,请尝试使用 flutter pub 升级来升级 flutter 包。 同时将 —repo-update 传递给 pod install。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.