Undefined symbols from FacebookAdapter in iOS build

1,326 views
Skip to first unread message

Jakub

unread,
Feb 13, 2022, 4:33:17 PM2/13/22
to Google Mobile Ads SDK Developers
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 using 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:
  1. 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
  2. Tried to build project created with Unity 2021.2.11f1

Best regards,
Jakub
Screenshot.png

Jakub

unread,
Feb 23, 2022, 4:07:40 AM2/23/22
to Google Mobile Ads SDK Developers
Any chance for help with this one?

Best regards,
Jakub

Mobile Ads SDK Forum Advisor

unread,
Feb 23, 2022, 10:16:22 AM2/23/22
to mobinat...@gmail.com, google-adm...@googlegroups.com

Hi Jakub,

Thank you for your response.

Can you confirm if you received our private response? If not yet, I would suggest checking your spam folder, and try to provide the requested information privately.

As a side note, if you're having trouble receiving private replies from us, please check your Spam folder. Additionally, please add the 'From address' on that email to your contact list to ensure we aren't flagged as Spam in future messages. If you don't see a message from us in your Spam folder, please email us directly at mobileads-...@google.com referring to this forum thread.

Regards,

Google Logo
Princess Pamela
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2WvIT3:ref

Jakub

unread,
Feb 23, 2022, 5:04:03 PM2/23/22
to Google Mobile Ads SDK Developers
Ah, indeed - message landed in Spam folder... Thank you very much!

Best regards,
Jakub

Trọng Nguyễn Lê Hồng

unread,
Mar 8, 2022, 9:25:51 PM3/8/22
to Google Mobile Ads SDK Developers
Hi,
I'm having the same issue. Have you found a solution?
Regards,
Trong

Trọng Nguyễn

unread,
Mar 28, 2022, 3:33:06 AM3/28/22
to Google Mobile Ads SDK Developers

I solved it.

In the project navigator click on your project properties in the top and make sure the correct target is selected. Go to the Build Phases tab and scroll to Link Binaries With Libraries. Add both EventKit.framework and EventKitUI.framework to this list.

Reply all
Reply to author
Forward
0 new messages