MetaAdapter 6.15.0.0 Undefined symbols

572 views
Skip to first unread message

Sky choi

unread,
Apr 9, 2024, 12:45:05 AM4/9/24
to Google Mobile Ads SDK Developers
Hi, I am try to update the SDKs in my project to fulfil apple new privacy policy.
  • Google Mobile Ads SDK version 11.2.0.
  • Meta Audience Network SDK version 6.15.0.
  • MetaAdapter 6.15.0.0
When i use these SDK in my project and set Build setting -> other linker flags "-objc".
I will get undefined symbols error
ld: Undefined symbols:
_FBAdExperienceTypeRewarded, referenced from:
-[GADFBRewardedRenderer adExperienceType] in MetaAdapter[x86_64][5](GADFBRewardedRenderer.o)
_FBAdExperienceTypeRewardedInterstitial, referenced from:
-[GADFBRewardedInterstitialRenderer adExperienceType] in MetaAdapter[x86_64][8](GADFBRewardedInterstitialRenderer.o)
_FBAdOptionsViewHeight, referenced from:
-[GADFBNativeRenderer loadAdOptionsView] in MetaAdapter[x86_64][7](GADFBNativeRenderer.o)
_FBAdOptionsViewWidth, referenced from:
-[GADFBNativeRenderer loadAdOptionsView] in MetaAdapter[x86_64][7](GADFBNativeRenderer.o)
_OBJC_CLASS_$_FBAdOptionsView, referenced from:
in MetaAdapter[x86_64][7](GADFBNativeRenderer.o)
_OBJC_CLASS_$_FBNativeAdBase, referenced from:
in MetaAdapter[x86_64][7](GADFBNativeRenderer.o)
Best regards
Sky Choi


Mobile Ads SDK Forum Advisor

unread,
Apr 10, 2024, 4:55:41 PM4/10/24
to choichi...@gmail.com, google-adm...@googlegroups.com

Hi Sky Choi,

Thank you for contacting the Mobile Ads SDK support team.

Kindly be informed that we have attempted to replicate the issue using the provided details with the Google sample application, however, we were unable to obtain the same result.

Could you kindly provide us with the sample project, so that we may examine it and attempt to reproduce the issue, after which we can offer a solution.

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, kindly provide requested information to us via reply to author option or using the steps below:

1. Navigate to
https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002tOxQKQA0&entry.80707362=00230433

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tOxQK:ref" (ADR-00230433)

Thanks,
 
Google Logo Mobile Ads SDK Team


Sky choi

unread,
Apr 10, 2024, 10:38:22 PM4/10/24
to Google Mobile Ads SDK Developers
Hi,

I just uploaded the demo for you.

Thanks

Mobile Ads SDK Forum Advisor 在 2024年4月11日 星期四凌晨4:55:41 [UTC+8] 的信中寫道:

Mobile Ads SDK Forum Advisor

unread,
Apr 12, 2024, 3:36:30 PM4/12/24
to choichi...@gmail.com, google-adm...@googlegroups.com

Hi,

Kindly be advised that we did not receive any files from your end. Please resend the files so that we can review them and attempt to replicate the issue, following which we will be able to provide a solution.

Mobile Ads SDK Forum Advisor

unread,
Apr 15, 2024, 5:42:19 AM4/15/24
to choichi...@gmail.com, google-adm...@googlegroups.com

Hi Sky Choi,

Thank you for providing the sample project.

I ran the project and the issue you have mentioned was reproducing but after making some changes the project ran successfully.

Change is  replace “-objc” with  $(inherited) in other linker flags.

Steps: Build setting -> other linker flags "$(inherited)".

Please reach out to us, if you need any further assistance.

Sky choi

unread,
Apr 15, 2024, 11:24:41 PM4/15/24
to Google Mobile Ads SDK Developers
Hi,

In my real project there have other SDK, like Firebase analytics, Crashlytics, Smaato
these SDK need me add "-objc" in other linker flags.
Could you give me another solution?

Thanks

Mobile Ads SDK Forum Advisor

unread,
Apr 16, 2024, 4:59:25 AM4/16/24
to choichi...@gmail.com, google-adm...@googlegroups.com
Hi Sky Choi,
Thank you for getting back to us.

Sure,  you can use both -objC and  $(inherited) in other linker flags. Also, It is advisable to incorporate the pod ‘GoogleMobileAdsMediationFacebook’ within the Podfile and subsequently execute the command ‘pod install –repo-update’. For more information, Kindly refer to Integrate Meta Audience Network with bidding. Additionally, I would appreciate it if you could provide information regarding the source from which you downloaded the MetaAdapter and FBAudienceNetwork libraries.

Sky choi

unread,
Apr 17, 2024, 12:17:57 AM4/17/24
to Google Mobile Ads SDK Developers
Hi,
Thank you for your reply.

Unfortunately our company not allow us to use cocoapods in our project. I cant set both -ObjC and $(inherited) in different SDK. Any advice for me to handle this situation?

I manual download FBAudienceNetwork in this site. V6.15.0

I manual download MetaAdapter in this site. V6.15.0.0

I manual download Google mobile ads SDK in this site. V11.2.0
https://developers.google.com/admob/ios/download

Thanks

Mobile Ads SDK Forum Advisor

unread,
Apr 17, 2024, 8:20:31 AM4/17/24
to choichi...@gmail.com, google-adm...@googlegroups.com

Hi Sky Choi,

Thank you for providing information regarding the source from which you downloaded the MetaAdapter and FBAudienceNetwork libraries.

I see that you are making use of a manual download framework and swift package manager at the same time. Use one of the following methods to import the Google Mobile Ads SDK.

CocoaPods (preferred)
Swift Package Manager
Manual Download

There are 2 errors in the sample project you have provided 

  1. Missing package product 'GoogleMobileAds'
  2. Linker command failed with exit code 1 (use -v to see invocation) undefined symbols due to Meta Adapter.


For 1st error remove the existing GoogleMobileAds framework and add it again which you can download from GoogleMobileAdsSDK.zip, because the existing framework is grayed out.
For the 2nd error: 

  1. I’m able to run the Google sample Objective C project successfully either by removing or keeping -ObjC in other linker flags. 
  2. I’m able to run the Google sample Objective C project successfully with the FBAudienceNetwork and Meta Adapter frameworks added by removing -ObjC. 
  3. Xcode is throwing an undefined symbol error only when -ObjC is added to the project which contains FBAudienceNetwork and Meta Adapter frameworks and the error is also around Meta Adapter.

I would recommend reaching out to Meta's product support team. Please note that we can only assist with technical queries/concerns related to the Google Mobile Ads SDK. Meanwhile, if I find any solution I’ll keep you posted on the same.

My tryouts are below and none of them didn’t work:

  • Adding -ObjC & $(inherited) in other linker flags
  • Added Library Search Paths to the target's Build Settings 
  • Deleting derived data
  • Adding EventKitUI, and AdSupport in Link binaries with libraries in build phases(which is not relevant but in some sources some devs stated it worked). 
  • Build Active Architecture only to YES, NO. 

Sky choi

unread,
Apr 18, 2024, 12:08:34 AM4/18/24
to Google Mobile Ads SDK Developers
Hi,
I find the solution, if we use FBAudienceNetwork static SDK than it works.
Thank you for all your assistance
Reply all
Reply to author
Forward
0 new messages