UnityAdmobPlugin with iOS Build Failure with Google Mobile Ads SDK 9.14.0

883 views
Skip to first unread message

phandi...@gmail.com

unread,
Dec 9, 2022, 11:42:20 PM12/9/22
to Google Mobile Ads SDK Developers
Try to build an iOS app with Google Mobile Ads (Unity) 7.3.1. Observe that during CocoaPods dependency resolution, it pulls the Google Mobile Ads (iOS) SDK version 9.14.0. The following error is thrown in XCode:
▸ Linking UnityFramework ❌ duplicate symbol '_OBJC_IVAR_$_GADPAIDIdentifier._identifier' in > GoogleMobileAds(GADPAIDIdentifier.o) > unity-plugin-library.a(GADPAIDIdentifier.o) ❌ duplicate symbol '_OBJC_CLASS_$_GADPAIDIdentifier' in > GoogleMobileAds(GADPAIDIdentifier.o) > unity-plugin-library.a(GADPAIDIdentifier.o) ❌ duplicate symbol '_OBJC_METACLASS_$_GADPAIDIdentifier' in > GoogleMobileAds(GADPAIDIdentifier.o) > unity-plugin-library.a(GADPAIDIdentifier.o) ❌ duplicate symbol '_OBJC_IVAR_$_GADPAIDIdentifier._timestamp' in > GoogleMobileAds(GADPAIDIdentifier.o) > unity-plugin-library.a(GADPAIDIdentifier.o) ❌ duplicate symbol '_OBJC_IVAR_$_GADPAIDManager._userDefaults' in > GoogleMobileAds(GADPAIDManager.o) > unity-plugin-library.a(GADPAIDManager.o) ❌ duplicate symbol '_OBJC_CLASS_$_GADPAIDManager' in > GoogleMobileAds(GADPAIDManager.o) > unity-plugin-library.a(GADPAIDManager.o) ❌ duplicate symbol '_OBJC_METACLASS_$_GADPAIDManager' in > GoogleMobileAds(GADPAIDManager.o) > unity-plugin-library.a(GADPAIDManager.o) ❌ duplicate symbol '_OBJC_IVAR_$_GADPAIDManager._storageAllowed' in > GoogleMobileAds(GADPAIDManager.o) > unity-plugin-library.a(GADPAIDManager.o) ❌ duplicate symbol '_OBJC_IVAR_$_GADPAIDManager._PAIDV2' in > GoogleMobileAds(GADPAIDManager.o) > unity-plugin-library.a(GADPAIDManager.o) ❌ duplicate symbol '_OBJC_IVAR_$_GADPAIDManager._PAIDV1' in > GoogleMobileAds(GADPAIDManager.o) > unity-plugin-library.a(GADPAIDManager.o) ❌ ld: 10 duplicate symbols for architecture arm64 ❌ clang: error: linker command failed with exit code 1 (use -v to see invocation)

Fausto Bernardini

unread,
Dec 10, 2022, 6:34:10 PM12/10/22
to Google Mobile Ads SDK Developers
I'm having the same problem. Did you figure out a workaround? I have been stuck on this for a couple of days.

Fausto Bernardini

unread,
Dec 10, 2022, 7:08:20 PM12/10/22
to Google Mobile Ads SDK Developers
Update: downleveling to Mobile Ads (Unity) 7.3.0 solved the issue.

John (Jovar)

unread,
Dec 11, 2022, 11:57:40 PM12/11/22
to Google Mobile Ads SDK Developers
Installing the Google Mobile Ads Unity Plugin v7.3.0 (https://github.com/googleads/googleads-mobile-unity/releases/tag/v7.3.0) worked for me as well.

Mobile Ads SDK Forum Advisor

unread,
Dec 12, 2022, 1:28:43 AM12/12/22
to john.c...@gmail.com, google-adm...@googlegroups.com

Hello everyone,

 

@Fausto & John, thank you for sharing your inputs.

 

@Phandi, Would you be able to confirm if the issue on your end happens only using the latest Google Mobile Ads (Unity) 7.3.1 version? You may try to downgrade to 7.3.0 version for the meantime as a workaround suggested by Fausto. Nonetheless, we would require the below information for the reported behavior:

  • Sample app where the issue is reproducible
  • Steps to replicate the reported behavior or video screen recording of the issue
  • complete stacktrace
  • app id if not included in the sample app

 

You may send the requested details privately via "Reply To Author" button or with the below process.

 

If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

 

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=5004Q00002h1VenQAE&entry.80707362=00160272

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.


Regards,
Google Logo
Michael Angelo
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2h1Ven:ref

Mobile Ads SDK Forum Advisor

unread,
Jan 30, 2023, 5:19:48 AM1/30/23
to phandi...@gmail.com, google-adm...@googlegroups.com
Hi all,

Thank you for your patience. The team provided their feedback and mentioned that the issue reported here has been fixed on unity plugin 7.4.0.

Regards,
Google Logo
Teejay Wennie
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2h1Ven:ref
Reply all
Reply to author
Forward
0 new messages