我的Podfile看起来像这样
platform :ios, '11.2'
target 'live-quiz' do
use_frameworks!
pod 'Fabric'
pod 'Crashlytics'
pod 'Kingfisher'
pod 'Alamofire'
pod 'youtube-ios-player-helper'
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Firestore'
pod 'Firebase/Database'
pod 'Firebase/Messaging'
pod 'Firebase/Storage'
pod 'CodableFirebase'
pod 'FBSDKLoginKit'
pod 'CountryPickerSwift'
pod 'lottie-ios'
pod 'SwiftySound'
end
我之前可以运行pod更新,但是今天运行pod update之后
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "Firebase/Core":
In Podfile:
Firebase/Core
Specs satisfying the `Firebase/Core` dependency were found, but they required a higher minimum deployment target.
CocoaPods could not find compatible versions for pod "GoogleUtilities/AppDelegateSwizzler":
In Podfile:
Firebase/Core was resolved to 5.8.0, which depends on
FirebaseAnalytics (= 5.1.2) was resolved to 5.1.2, which depends on
GoogleUtilities/AppDelegateSwizzler (~> 5.2.0)
Specs satisfying the `GoogleUtilities/AppDelegateSwizzler (~> 5.2.0)` dependency were found, but they required a higher minimum deployment target.
CocoaPods could not find compatible versions for pod "gRPC-Core":
In Podfile:
Firebase/Firestore was resolved to 5.8.0, which depends on
FirebaseFirestore (= 0.13.3) was resolved to 0.13.3, which depends on
gRPC-C++ (~> 0.0.3) was resolved to 0.0.3, which depends on
gRPC-C++/Implementation (= 0.0.3) was resolved to 0.0.3, which depends on
gRPC-Core (= 1.14.0)
Firebase/Firestore was resolved to 5.8.0, which depends on
FirebaseFirestore (= 0.13.3) was resolved to 0.13.3, which depends on
gRPC-ProtoRPC (~> 1.0) was resolved to 1.14.1, which depends on
gRPC-ProtoRPC/Main (= 1.14.1) was resolved to 1.14.1, which depends on
gRPC (= 1.14.1) was resolved to 1.14.1, which depends on
gRPC/Main (= 1.14.1) was resolved to 1.14.1, which depends on
gRPC-Core (= 1.14.1)
看起来gRPC-C ++ / Implementation和gRPC / Main中的gRPC-Core使用不同的版本(1.14.0、1.14.1)如何解决此问题?
答案 0 :(得分:1)
请重新运行
pod update
他们修复了它。请检查: https://github.com/firebase/firebase-ios-sdk/issues/1845
已解决的Firebase / Core依赖关系导致的CocoaPods错误。 (#1845,#8110)
答案 1 :(得分:0)
我有同样的问题,以下对我有用。 更改您的Podfile:
来自:
platform :ios, '11.2'
收件人:
platform :ios, '9.0'
答案 2 :(得分:0)
现在:Google在5.8.1版中解决了此问题-2018年9月19日
从Firebase支持
是的,即使将平台降级,问题仍然存在 版本,我已经与我们的工程师进行了协调,并等待着 他们的回应。现在,我可以通过降级来正确安装 我的Firebase / Core版本为5.7.0,即“ Firebase / Core”,“ 5.7.0”。然后 做一个pod安装/ pod更新。
答案 3 :(得分:0)
我遇到了同样的问题,请尝试添加:
pod 'BoringSSL-GRPC', '0.0.3'
在项目的 Podfile 中然后运行:
pod install