Hi,
I'm using Google Mobile Ads in Unity
project with Facebook Mediation. For Android everything works fine, but
for iOS I'm getting undefined symbols. The issue is in my current
project but it is also present in a fresh project that I've created for
test purposes (Unity 2021.1.9f1).
I'm us
ing Google Mobile Ads Unity Plugin v6.1.2 and most recent Facebook Unity Mediation Plugin (v3.6.0) taken from here. FB Audience Network is not added explicitly, but through dependencies is resolved to v6.8.0.
What might be important, when importing Google
Mobile Ads Unity Plugin I got message that some precompiled assemblies
use Unity API's that have changed since these assemblies were built -
please see attached screenshot for more details. In the alert from the
screenshot I've tried both options.
I'll be happy to provide test project.
Linker issues that I get when building in Xcode 13.2.1:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_GADAdReward", referenced from:
objc-class-ref in FacebookAdapter(GADFBRewardedRenderer.o)
"_OBJC_CLASS_$_GADMobileAds", referenced from:
objc-class-ref in FacebookAdapter(GADMediationAdapterFacebook.o)
objc-class-ref in FacebookAdapter(GADMAdapterFacebook.o)
objc-class-ref in FacebookAdapter(GADFBUtils.o)
"_NSValueFromGADAdSize", referenced from:
-[GADFBBannerAd getBannerWithSize:] in FacebookAdapter(GADFBBannerAd.o)
"_GADClosestValidSizeForAdSizes", referenced from:
-[GADFBBannerAd getBannerWithSize:] in FacebookAdapter(GADFBBannerAd.o)
"_CGSizeFromGADAdSize", referenced from:
-[GADFBBannerAd getBannerWithSize:] in FacebookAdapter(GADFBBannerAd.o)
"_NSStringFromGADAdSize", referenced from:
-[GADFBBannerAd getBannerWithSize:] in FacebookAdapter(GADFBBannerAd.o)
"_GADAdSizeFromCGSize", referenced from:
-[GADFBBannerAd getBannerWithSize:] in FacebookAdapter(GADFBBannerAd.o)
"_OBJC_CLASS_$_GADMediatedUnifiedNativeAdNotificationSource", referenced from:
objc-class-ref in FacebookAdapter(GADFBNativeBannerAd.o)
objc-class-ref in FacebookAdapter(GADFBUnifiedNativeAd.o)
"_OBJC_CLASS_$_GADNativeAdImage", referenced from:
objc-class-ref in FacebookAdapter(GADFBNativeBannerAd.o)
objc-class-ref in FacebookAdapter(GADFBUnifiedNativeAd.o)
objc-class-ref in FacebookAdapter(GADFBNativeRenderer.o)
objc-class-ref in FacebookAdapter(GADFBNativeAdBase.o)
"_GADUnifiedNativeIconAsset", referenced from:
-[GADFBNativeBannerAd
didRenderInView:clickableAssetViews:nonclickableAssetViews:viewController:]
in FacebookAdapter(GADFBNativeBannerAd.o)
-[GADFBUnifiedNativeAd
didRenderInView:clickableAssetViews:nonclickableAssetViews:viewController:]
in FacebookAdapter(GADFBUnifiedNativeAd.o)
-[GADFBNativeRenderer
didRenderInView:clickableAssetViews:nonclickableAssetViews:viewController:]
in FacebookAdapter(GADFBNativeRenderer.o)
Additional options checked:
- Tried to explicitly add Unity Audience Network SDK taken from here. Since it is for version 6.4.1 I've tested it with Facebook Unity Mediation Plugin v3.3.0. This option I've checked with most recent Google Mobile Ads SDK (v8.13.0) and with v8.8.0. Everything ended with the same linker errors
- Tried to build project created with Unity 2021.2.11f1
Best regards,
Jakub