[英]Cocoapods:[!] CocoaPods could not find compatible versions for pod “Firebase/Storage”:
So I have several pods in my xcode project, which were all working fine.所以我的 xcode 项目中有几个 pod,它们都运行良好。 Then I added this 'SideMenu' pod, which told me I need to change the versions of one of my pods, so I did, and now my pods are all messed up.然后我添加了这个 'SideMenu' pod,它告诉我需要更改我的一个 pod 的版本,所以我做了,现在我的 pod 都搞砸了。 I'm trying to revert to what I had, which is:我试图恢复到我所拥有的,即:
platform :ios, '9.0'
target 'Jumper' do
use_frameworks!
# Pods for Jumper
pod 'Firebase/Firestore'
pod 'Firebase/Storage'
pod 'FirebaseUI/Storage', '~> 5.0'
end
When I changed my Podfile back to this, and did 'pod install', I am getting this error in my terminal:当我将 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)
I am not sure what the problem is or how to fix it.我不确定问题是什么或如何解决它。 Any help would be much appreciated任何帮助将非常感激
You can try removing the '~> 5.0' part from the pod 'FirebaseUI/Storage', '~> 5.0'.您可以尝试从 pod 'FirebaseUI/Storage'、'~> 5.0' 中删除 '~> 5.0' 部分。 Just keep the pod 'FirebaseUI/Storage'.只需保留 pod 'FirebaseUI/Storage'。 I hope that should work.我希望这应该有效。
If you really want the old FirebaseUI version, remove Podfile.lock
before pod install
.如果您真的想要旧的 FirebaseUI 版本, Podfile.lock
在pod install
之前删除Podfile.lock
。 Or run pod update
instead of pod install
.或者运行pod update
而不是pod install
。
pod install
checks the Podfile.lock to prevent accidental version downgrades. pod install
检查 Podfile.lock 以防止意外的版本降级。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.