[英]CocoaPods could not find compatible versions for pod FirebaseCore In snapshot (Podfile.lock):
I am getting below error for command pod install
, not resolved by this我在命令
pod install
时遇到以下错误,未由此解决
[!] CocoaPods could not find compatible versions for pod "FirebaseCore":
In snapshot (Podfile.lock):
FirebaseCore (= 3.6.0, ~> 3.6)
In Podfile:
Firebase/Crashlytics was resolved to 6.15.0, which depends on
FirebaseCrashlytics (~> 4.0.0-beta.1) was resolved to 4.0.0-beta.1, which depends on
FirebaseCore (>= 6.3.2, ~> 6.3)
Google/Analytics was resolved to 3.1.0, which depends on
Google/Core (= 3.1.0) was resolved to 3.1.0, which depends on
FirebaseAnalytics (~> 3.2) was resolved to 3.9.0, which depends on
FirebaseCore (~> 3.6)
Here is my Podfile,这是我的 Podfile,
# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
target 'MyProject' do
# Uncomment this line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
pod 'FBSDKCoreKit', '~>5.15.1'
pod 'FBSDKShareKit', '~>5.15.1'
pod 'FBSDKLoginKit', '~>5.15.1'
pod 'Google/Analytics'
pod 'GoogleMaps'
pod 'CocoaLumberjack'
pod 'Firebase/Crashlytics'
pod 'Firebase/Analytics'
target 'MyProjectTests' do
inherit! :search_paths
end
target 'MyProjectUITests' do
inherit! :search_paths
end
end
How can I resolve this issue?我该如何解决这个问题?
You can understand why CocoaPods chooses which dependencies by examining the generated Podfile.lock
file.你可以通过查看生成的
Podfile.lock
文件来理解 CocoaPods 选择哪些依赖项的Podfile.lock
。
I suspect the issue is related to using the deprecated Google
pod.我怀疑该问题与使用已弃用的
Google
pod 有关。 Likely, you should use GoogleAnalytics
without the slash instead.很可能,您应该使用不带斜杠的
GoogleAnalytics
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.