【问题标题】:CocoaPods could not find compatible versions for pod FirebaseCore In snapshot (Podfile.lock):CocoaPods 在快照 (Podfile.lock) 中找不到 pod FirebaseCore 的兼容版本:
【发布时间】:2021-02-17 01:02:03
【问题描述】:

命令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

我该如何解决这个问题?

【问题讨论】:

    标签: ios xcode cocoapods


    【解决方案1】:

    您可以通过检查生成的Podfile.lock 文件来了解 CocoaPods 选择哪些依赖项的原因。

    我怀疑该问题与使用已弃用的 Google pod 有关。您可能应该使用不带斜线的GoogleAnalytics

    【讨论】:

    • 如果我同时使用 FirebaseAnalytics 和 GoogleAnalytics 会发生什么?数据会出现在单个仪表板中吗?
    猜你喜欢
    • 2019-02-01
    • 1970-01-01
    • 2021-11-13
    • 1970-01-01
    • 1970-01-01
    • 2020-07-29
    • 2021-07-21
    • 2019-05-07
    • 2021-09-04
    相关资源
    最近更新 更多