我遇到命令pod install
的错误,this无法解决
[!] 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)
这是我的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
如何解决此问题?
答案 0 :(得分:1)
通过检查生成的Podfile.lock
文件,您可以了解CocoaPods为什么选择哪些依赖项。
我怀疑该问题与使用已弃用的Google
窗格有关。可能您应该使用GoogleAnalytics
而不使用斜杠。