简体   繁体   English

CocoaPods 找不到 pod 的兼容版本

[英]CocoaPods could not find compatible versions for pod

I'm trying to implement UnityAds SDK to use with AppLovin Max mediation, but after updating the UnityAds SDK to it's latest version which is 3.7.0, i'm getting this error when trying to update the pods.我正在尝试实施 UnityAds SDK 以与 AppLovin Max 中介一起使用,但是在将 UnityAds SDK 更新到最新版本 3.7.0 后,我在尝试更新 pod 时收到此错误。

Any suggestions?有什么建议么?

[!] CocoaPods could not find compatible versions for pod "UnityAds":
  In snapshot (Podfile.lock):
    UnityAds (= 3.7.0)

  In Podfile:
    AppLovinMediationUnityAdsAdapter was resolved to 3.0.0.2, which depends on
      UnityAds (= 3.0.0)

    UnityAds (= 3.7.0)

The AppLovin adapters are specifically certified and tested against a specific version of the mediated networks' SDK. AppLovin 适配器针对特定版本的中介网络 SDK 进行了专门认证和测试。 In this instance, it seems that the adapter version was 3.0.0.2 which likely depends on UnityAds SDK 3.0.0 (the first n - 1 numbers represent the certified SDK's version).在这种情况下,适配器版本似乎是3.0.0.2 ,这可能取决于 UnityAds SDK 3.0.0 (前n - 1数字代表经过认证的 SDK 版本)。

I'd recommend removing explicit references to UnityAds in your Podfile.我建议在您的 Podfile 中删除对 UnityAds 的明确引用。

So it seems that when you are using AppLovinSDK MAX mediation and want to implement other mediation networks, you should NOT implement the other networks SDK's (which is what I did):因此,当您使用 AppLovinSDK MAX 中介并想要实现其他中介网络时,您似乎应该实现其他网络 SDK(这就是我所做的):

pod 'UnityAds'
pod 'Google-Mobile-Ads-SDK'
pod 'FBAudienceNetwork'

What you really should do is just to implement the adapters you want and they will include the SDK version which they support in by them self.您真正应该做的只是实现您想要的适配器,它们将包括他们自己支持的 SDK 版本。

There is no proper documentation in AppLovin's website and all seems to be messed up there, but it's working the same as Google AdMob Mediation so that's how I figure it out and AppLovin's support team approved it right after. AppLovin 的网站上没有适当的文档,而且似乎一切都搞砸了,但它的工作原理与 Google AdMob Mediation 相同,所以我就是这样弄明白的,AppLovin 的支持团队随后立即批准了它。

This is how the Podfile should look using AppLovinSDK:这是使用 AppLovinSDK 时Podfile的外观:

pod 'AppLovinSDK'
pod 'AppLovinMediationFacebookAdapter'
pod 'AppLovinMediationUnityAdsAdapter'
pod 'AppLovinMediationVungleAdapter'
pod 'AppLovinMediationGoogleAdapter'

And that's about it.就是这样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 CocoaPods 找不到 pod "PackageA" 的兼容版本 - CocoaPods could not find compatible versions for pod "PackageA" CocoaPods 找不到 pod“GoogleDataTransportCCTSupport”的兼容版本 - CocoaPods could not find compatible versions for pod “GoogleDataTransportCCTSupport” CocoaPods 找不到 pod“FirebaseCoreExtension”的兼容版本 - CocoaPods could not find compatible versions for pod "FirebaseCoreExtension" CocoaPods 找不到 pod“GoogleAppMeasurement”的兼容版本 - CocoaPods could not find compatible versions for pod "GoogleAppMeasurement" CocoaPods 找不到 pod“FirebaseAppCheck”的兼容版本 - CocoaPods could not find compatible versions for pod "FirebaseAppCheck" CocoaPods找不到“ Moya”吊舱的兼容版本 - CocoaPods could not find compatible versions for pod “Moya” CocoaPods 找不到 pod“Protobuf”的兼容版本 - CocoaPods could not find compatible versions for pod "Protobuf" CocoaPods 找不到 pod“UMCore”的兼容版本 - CocoaPods could not find compatible versions for pod “UMCore” CocoaPods 找不到 pod “AFNetworking” 的兼容版本: - CocoaPods could not find compatible versions for pod “AFNetworking”: CocoaPods 找不到 pod“电容器”的兼容版本 - CocoaPods could not find compatible versions for pod "Capacitor"
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM