简体   繁体   English

CocoaPods 在快照 (Podfile.lock) 中找不到 pod FirebaseCore 的兼容版本:

[英]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.

相关问题 CocoaPods 找不到 pod“firebase_auth”的兼容版本:在 Podfile 中 - CocoaPods could not find compatible versions for pod "firebase_auth": In Podfile CocoaPods 在 Podfile 中找不到 pod XXXX 的兼容版本 - CocoaPods could not find compatible versions for pod XXXX in Podfile CocoaPods 找不到 pod“GoogleSignIn”的兼容版本:在 Podfile:GoogleSignIn - CocoaPods could not find compatible versions for pod “GoogleSignIn”: In Podfile: GoogleSignIn CocoaPods 找不到 pod“Flipper-Glog”的兼容版本:在 Podfile 中: - CocoaPods could not find compatible versions for pod "Flipper-Glog": In Podfile: CocoaPods 找不到 pod“FirebaseCore”的兼容版本:为 flutter iOS 构建运行 pod 安装时出错 - CocoaPods could not find compatible versions for pod "FirebaseCore" : error on running pod install for flutter iOS build Podfile.lock 版本和 pod [podfile] --版本号不同 - Podfile.lock versions and pod [podfile] --version numbers are different CocoaPods 找不到 pod "Flutter" 的兼容版本:在 Podfile: Flutter (from `Flutter`) - CocoaPods could not find compatible versions for pod "Flutter": In Podfile: Flutter (from `Flutter`) CocoaPods 找不到 pod "PackageA" 的兼容版本 - CocoaPods could not find compatible versions for pod "PackageA" CocoaPods 找不到 pod 的兼容版本 - CocoaPods could not find compatible versions for pod CocoaPods 找不到 pod“GoogleDataTransportCCTSupport”的兼容版本 - CocoaPods could not find compatible versions for pod “GoogleDataTransportCCTSupport”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM