Unity Google AdMob Xcode: When I want to run my game on my iPhone with Xcode i have an error

Undefined symbols for architecture arm64:
OBJC_CLASS_GADRewardBasedVideoAd", referenced from: objc-class-ref in GADURewardBasedVideoAd.o "_OBJC_CLASS__GADBannerView”, referenced from:
objc-class-ref in GADUBanner.o
OBJC_CLASS_GADExtras", referenced from: objc-class-ref in GADURequest.o "_OBJC_CLASS__GADRequest”, referenced from:
objc-class-ref in GADURequest.o
OBJC_CLASS_GADRewardedAd", referenced from: objc-class-ref in GADURewardedAd.o "_kGADAdSizeSmartBannerPortrait", referenced from: -[GADUBanner initWithSmartBannerSizeAndBannerClientReference:adUnitID:adPosition:] in GADUBanner.o -[GADUBanner initWithSmartBannerSizeAndBannerClientReference:adUnitID:customAdPosition:] in GADUBanner.o "_kGADSimulatorID", referenced from: -[GADURequest addTestDevice:] in GADURequest.o "_OBJC_CLASS__GADInterstitial”, referenced from:
objc-class-ref in GADUInterstitial.o
“_kGADAdLoaderAdTypeNativeCustomTemplate”, referenced from:
_GADUCreateAdLoader in GADUInterface.o
“_GADPortraitAnchoredAdaptiveBannerAdSizeWithWidth”, referenced from:
+[GADUPluginUtil adaptiveAdSizeForWidth:orientation:] in GADUPluginUtil.o
“_CGSizeFromGADAdSize”, referenced from:
+[GADUPluginUtil safeAdSizeForAdSize:] in GADUPluginUtil.o
“_GADLandscapeAnchoredAdaptiveBannerAdSizeWithWidth”, referenced from:
+[GADUPluginUtil adaptiveAdSizeForWidth:orientation:] in GADUPluginUtil.o
“_GADAdSizeFromCGSize”, referenced from:
+[GADUPluginUtil safeAdSizeForAdSize:] in GADUPluginUtil.o
+[GADUPluginUtil adSizeForWidth:height:] in GADUPluginUtil.o
“_kGADAdSizeSmartBannerLandscape”, referenced from:
+[GADUPluginUtil safeAdSizeForAdSize:] in GADUPluginUtil.o
-[GADUBanner initWithSmartBannerSizeAndBannerClientReference:adUnitID:adPosition:] in GADUBanner.o
-[GADUBanner initWithSmartBannerSizeAndBannerClientReference:adUnitID:customAdPosition:] in GADUBanner.o
OBJC_CLASS_GADAdLoader", referenced from: objc-class-ref in GADUAdLoader.o "_GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth", referenced from: +[GADUPluginUtil adaptiveAdSizeForWidth:orientation:] in GADUPluginUtil.o "_GADAdSizeEqualToSize", referenced from: +[GADUPluginUtil safeAdSizeForAdSize:] in GADUPluginUtil.o "_OBJC_CLASS__GADMobileAds”, referenced from:
objc-class-ref in GADUInterface.o
“_GADAdSizeFullWidthPortraitWithHeight”, referenced from:
+[GADUPluginUtil adSizeForWidth:height:] in GADUPluginUtil.o
OBJC_CLASS$_GADServerSideVerificationOptions”, referenced from:
objc-class-ref in GADUInterface.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


If you open Symlink Unity libraries, the problem will disappear.

Did anyone ever solve this? @DISER1 checking “Symlink Unity Libraries” does not fix this for me. The XCode build still fails with the same errors @Iker8av reported, starting with:

Undefined symbols for architecture arm64:
  "_GADUnifiedNativeHeadlineAsset", referenced from:
      -[GADUUnifiedNativeAd initWithAd:] in unity-plugin-library.a(GADUUnifiedNativeAd_fe8578bae4763516575d618225e55fdd.o)
  "_GADUnifiedNativeBodyAsset", referenced from:
      -[GADUUnifiedNativeAd initWithAd:] in unity-plugin-library.a(GADUUnifiedNativeAd_fe8578bae4763516575d618225e55fdd.o)
  "_GADUnifiedNativeIconAsset", referenced from:
      -[GADUUnifiedNativeAd initWithAd:] in unity-plugin-library.a(GADUUnifiedNativeAd_fe8578bae4763516575d618225e55fdd.o)
  "_GADUnifiedNativeStoreAsset", referenced from:
      -[GADUUnifiedNativeAd initWithAd:] in unity-plugin-library.a(GADUUnifiedNativeAd_fe8578bae4763516575d618225e55fdd.o)
  "_GADUnifiedNativePriceAsset", referenced from:
      -[GADUUnifiedNativeAd initWithAd:] in unity-plugin-library.a(GADUUnifiedNativeAd_fe8578bae4763516575d618225e55fdd.o)
  "_GADUnifiedNativeStarRatingAsset", referenced from:
      -[GADUUnifiedNativeAd initWithAd:] in unity-plugin-library.a(GADUUnifiedNativeAd_fe8578bae4763516575d618225e55fdd.o)
  "_GADUnifiedNativeAdChoicesViewAsset", referenced from:
      -[GADUUnifiedNativeAd initWithAd:] in unity-plugin-library.a(GADUUnifiedNativeAd_fe8578bae4763516575d618225e55fdd.o)
  "_OBJC_CLASS_$_GADRewardedInterstitialAd", referenced from:
      objc-class-ref in unity-plugin-library.a(GADURewardedInterstitialAd_39f9127d3797cb8cad4cb2a8f659505d.o)
  "_OBJC_CLASS_$_GADInterstitial", referenced from:
      objc-class-ref in unity-plugin-library.a(GADUInterstitial_086edb7499729734905adee6bc26babe.o)
  "_GADAdSizeFullWidthPortraitWithHeight", referenced from:
      +[GADUPluginUtil adSizeForWidth:height:] in unity-plugin-library.a(GADUPluginUtil_ac2548951bebf4de3ca97eec72a8dded.o)
  "_kGADAdSizeSmartBannerLandscape", referenced from:

@Iker8av Any solution to this yet…?

@Iker8av any solution to this yet?