AppLovin / AppLovin-MAX-Unity-Plugin

129 stars 35 forks source link

Applovin Admob Mediation Problem #392

Closed HakanErenAlice closed 5 months ago

HakanErenAlice commented 5 months ago

MAX Plugin Version

6.5.2

Unity Version

2022.3.16

Device/Platform Info

IOS

Current Behavior

ld: warning: ignoring duplicate libraries: '-lc++' ld: warning: Could not find or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not found ld: warning: Could not find or use auto-linked framework 'UnitySwiftProtobuf': framework 'UnitySwiftProtobuf' not found ld: Undefined symbols: _GADAdLoaderAdTypeNative, referenced from: _73-[ALGoogleMediationAdapter loadAdViewAdForParameters:adFormat:andNotify:]_blockinvoke in libGoogleAdapter.a10 64-[ALGoogleMediationAdapter loadNativeAdForParameters:andNotify:]_block_invoke in libGoogleAdapter.a10 _GADAdSizeBanner, referenced from: -[ALGoogleMediationAdapter adSizeFromAdFormat:isAdaptiveBanner:parameters:] in libGoogleAdapter.a10 -[ALGoogleMediationAdapter adSizeFromAdFormat:isAdaptiveBanner:parameters:] in libGoogleAdapter.a10 _GADAdSizeLeaderboard, referenced from: -[ALGoogleMediationAdapter adSizeFromAdFormat:isAdaptiveBanner:parameters:] in libGoogleAdapter.a10 _GADAdSizeMediumRectangle, referenced from: -[ALGoogleMediationAdapter adSizeFromAdFormat:isAdaptiveBanner:parameters:] in libGoogleAdapter.a10 _GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth, referenced from: ___75-[ALGoogleMediationAdapter adSizeFromAdFormat:isAdaptiveBanner:parameters:]_block_invoke in libGoogleAdapter.a10 +[ALGoogleMediationAdapter currentOrientationAchoredAdaptiveBannerSizeWithWidth:] in libGoogleAdapter.a10 _GADGetStringFromVersionNumber, referenced from: -[ALGoogleMediationAdapter SDKVersion] in libGoogleAdapter.a10 _OBJCCLASS$_GADAdLoader, referenced from: in libGoogleAdapter.a10 _OBJCCLASS$_GADAppOpenAd, referenced from: in libGoogleAdapter.a10 _OBJCCLASS$_GADBannerView, referenced from: in libGoogleAdapter.a10 _OBJCCLASS$_GADExtras, referenced from: in libGoogleAdapter.a10 _OBJCCLASS$_GADInterstitialAd, referenced from: in libGoogleAdapter.a10 _OBJCCLASS$_GADMediaView, referenced from: in libGoogleAdapter.a3 _OBJCCLASS$_GADMobileAds, referenced from: in libGoogleAdapter.a10 _OBJCCLASS$_GADNativeAdImageAdLoaderOptions, referenced from: in libGoogleAdapter.a10 _OBJCCLASS$_GADNativeAdView, referenced from: in libGoogleAdapter.a7 _OBJCCLASS$_GADNativeAdViewAdOptions, referenced from: in libGoogleAdapter.a10 _OBJCCLASS$_GADQueryInfo, referenced from: in libGoogleAdapter.a10 _OBJCCLASS$_GADRequest, referenced from: in libGoogleAdapter.a10 _OBJCCLASS$_GADRewardedAd, referenced from: in libGoogleAdapter.a10 _OBJCCLASS$_GADRewardedInterstitialAd, referenced from: in libGoogleAdapter.a10 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Hello, I use 4 different mediations. liftoff, fb, mintegral and admob. When admob is turned off, I build without any problems. When admob is opened, I enter the key and build, I get this error. There was no such problem before. I tried several different versions of Unity and the result is the same.

Expected Behavior

No response

How to Reproduce

Ekran Resmi 2024-06-05 14 27 11

Additional Info

No response

JonathanLiuApp commented 5 months ago

@HakanErenAlice Unfortunately, I was unable to reproduce the error. Are you able to reproduce this with our demo app?

Wudderda commented 3 months ago

Were you able to solve this problem? I am having the same issue

evgeny44 commented 2 months ago

Has anyone resolved it?

kogodm commented 2 months ago

Has anyone resolved it? same error on : maxsdk 6.6.3

kogodm commented 2 months ago

Has anyone resolved it? same error on : maxsdk 6.6.3

stlll on 7.0.0

evgeny44 commented 2 months ago

The issue is with google mobile ads xframework missing from "link binary with library" in build phases in unity iphone target

Tamsiree commented 2 months ago

I am having the same issue, Has anyone resolved it?

evgeny44 commented 2 months ago

I am having the same issue, Has anyone resolved it?

Yes man. This happens, because you install pods with use_frameworks! This forces pods to be dynamic frameworks. And googlemobileads is a static framework. So to resolve this:

After pod install, navigate to your main target (which is Unit-iPhone) go to General tab,scroll down to Libraries, Frameworks and manually drag and drop there GoogleMobileAds.xcframework (embed & sign) from Pods project. Or update your Podfile to do that automatically on post_integrate hook.

Tamsiree commented 1 month ago

I am having the same issue, Has anyone resolved it?

Yes man. This happens, because you install pods with use_frameworks! This forces pods to be dynamic frameworks. And googlemobileads is a static framework. So to resolve this:

After pod install, navigate to your main target (which is Unit-iPhone) go to General tab,scroll down to Libraries, Frameworks and manually drag and drop there GoogleMobileAds.xcframework (embed & sign) from Pods project. Or update your Podfile to do that automatically on post_integrate hook.

thank you~