【问题标题】:CocoaPods could not find compatible versions for pod "FirebaseCore"CocoaPods 找不到 pod“FirebaseCore”的兼容版本
【发布时间】:2020-03-13 21:28:02
【问题描述】:

当我尝试使用 Unity 云构建进行构建时,我收到了以下消息:

然后

>     Installing cocoapods dependencies:
>64201:        ! .xcworkspace file could not be found.
>64202:        Analyzing dependencies
>64203:        [!] CocoaPods could not find compatible versions for pod "FirebaseCore":
>64204:          In Podfile:
>64205:            Firebase/Analytics (= 6.9.0) was resolved to 6.9.0, which depends on
>64206:              Firebase/Core (= 6.9.0) was resolved to 6.9.0, which depends on
>64207:                FirebaseAnalytics (= 6.1.2) was resolved to 6.1.2, which depends on
>64208:                  FirebaseCore (~> 6.3)
>64209:        
>64210:            Firebase/Auth (= 6.9.0) was resolved to 6.9.0, which depends on
>64211:              Firebase/CoreOnly (= 6.9.0) was resolved to 6.9.0, which depends on
>64212:                FirebaseCore (= 6.3.0)
>64213:        
>64214:            Firebase/Auth (= 6.9.0) was resolved to 6.9.0, which depends on
>64215:              FirebaseAuth (~> 6.2.3) was resolved to 6.2.3, which depends on
>64216:                FirebaseCore (~> 6.2)
>64217:        
>64218:        CocoaPods could not find compatible versions for pod "GoogleAppMeasurement":
>64219:          In Podfile:
>64220:            Firebase/Analytics (= 6.9.0) was resolved to 6.9.0, which depends on
>64221:              Firebase/Core (= 6.9.0) was resolved to 6.9.0, which depends on
>64222:                FirebaseAnalytics (= 6.1.2) was resolved to 6.1.2, which depends on
>64223:                  GoogleAppMeasurement (= 6.1.2)
>64224:        
>64225:            Google-Mobile-Ads-SDK (~> 7.42.1) was resolved to 7.42.2, which depends on
>64226:              GoogleAppMeasurement (~> 5.7)

然后

/BUILD_PATH/jeko.lazaramobile1.appstore-ios/temp20200309-7398-19hbpik/Libraries/Plugins/iOS/GADUNativeCustomTemplateAd.h:5:9: 'GoogleMobileAds/GoogleMobileAds.h' file not found`

我的本​​地构建也因缺少“GoogleMobileAds/GoogleMobileAds.h”而失败

在我的 Mac 上,当我检查我的 pod 文件时,它看起来像:

    target 'UnityFramework' do
  pod 'FBSDKCoreKit', '~> 5.5'
  pod 'FBSDKLoginKit', '~> 5.5'
  pod 'FBSDKShareKit', '~> 5.5'
  pod 'Firebase/Analytics', '6.9.0'
  pod 'Firebase/Auth', '6.9.0'
  pod 'Firebase/Core', '6.9.0'
  pod 'Google-Mobile-Ads-SDK', '~> 7.42.1'
end

我不知道这里必须做什么。任何帮助将不胜感激。我发现我的 firebese.core 以某种方式被卡在 6.2 或 6.3 上,但需要 6.9。我读到我必须包含一些框架搜索路径,但这是一种手动方法,而不是可可豆方式,我不知道在哪里手动输入路径。

【问题讨论】:

    标签: firebase unity3d cocoapods


    【解决方案1】:
    1. 删除 Pods/ 文件夹
    2. 删除 Podfile.lock
    3. pod 安装

    享受吧!

    【讨论】:

      【解决方案2】:

      从 Podfile 中删除版本说明符或至少减少限制。

      Google-Mobile-Ads-SDKFirebase/Analytics 都依赖于GoogleAppMeasurement,并且指定的版本不兼容。

      【讨论】:

      • 您的意思是只删除“pod 'Google-Mobile-Ads-SDK', '~> 7.42.1'”中的“~>”还是整行?我应该尝试从 firebase 行中删除“6.9.0”吗?你能确定它的外观吗?
      • 从每个pod 行中删除逗号及其后面的所有内容 - 例如pod 'Google-Mobile-Ads-SDK'
      猜你喜欢
      • 2021-11-13
      • 2021-02-17
      • 2019-02-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-29
      • 2021-07-21
      • 2019-05-07
      • 2021-09-04
      相关资源
      最近更新 更多