![](/img/trans.png)
[英]CocoaPods could not find compatible versions for pod "firebase_auth": In Podfile
[英]Cocoapods:[!] CocoaPods could not find compatible versions for pod “Firebase/Storage”:
所以我的 xcode 项目中有几个 pod,它们都运行良好。 然后我添加了这个 'SideMenu' pod,它告诉我需要更改我的一个 pod 的版本,所以我做了,现在我的 pod 都搞砸了。 我试图恢复到我所拥有的,即:
platform :ios, '9.0'
target 'Jumper' do
use_frameworks!
# Pods for Jumper
pod 'Firebase/Firestore'
pod 'Firebase/Storage'
pod 'FirebaseUI/Storage', '~> 5.0'
end
当我将 Podfile 改回这个并执行“pod install”时,我在终端中收到此错误:
[!] CocoaPods could not find compatible versions for pod
"Firebase/Storage":
In snapshot (Podfile.lock):
Firebase/Storage (= 6.27.0, ~> 6.0)
In Podfile:
Firebase/Storage
FirebaseUI/Storage (~> 5.0) was resolved to 5.2.2, which depends on
Firebase/Storage (~> 5.0)
我不确定问题是什么或如何解决它。 任何帮助将非常感激
您可以尝试从 pod 'FirebaseUI/Storage'、'~> 5.0' 中删除 '~> 5.0' 部分。 只需保留 pod 'FirebaseUI/Storage'。 我希望这应该有效。
如果您真的想要旧的 FirebaseUI 版本, Podfile.lock
在pod install
之前删除Podfile.lock
。 或者运行pod update
而不是pod install
。
pod install
检查 Podfile.lock 以防止意外的版本降级。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.