CocoaPods找不到容器"FirebaseCore"的兼容版本. [英] CocoaPods could not find compatible versions for pod "FirebaseCore"
问题描述
当我尝试使用Unity云构建进行构建时,收到以下消息:
When I try to build with Unity cloud build, I got this message:
然后
> 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"而失败了
my local builds failed too with missing "GoogleMobileAds/GoogleMobileAds.h"
在Mac上,当我检查Pod文件时,它看起来像:
on my Mac when I check my pod file it looks like :
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.我读到我必须包括一些框架搜索路径,但这是手动方法,而不是cocoapod方法,而且我不知道在哪里手动输入路径.
I can't figure out what has to be done here. Any help shall be appreciated greatly. I figure out that somehow my firebese.core is stuck to 6.2 or 6.3, but 6.9 is needed. I read that I have to include some framework search path, but this is manual approach and not the cocoapod way and I dont know where manualy to enter the path.
推荐答案
- 删除Pod/文件夹
- 删除Podfile.lock
- pod安装
享受!
这篇关于CocoaPods找不到容器"FirebaseCore"的兼容版本.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!