![](/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.