Hello.
My project uses Admob to display ads.
It works on Android but not on iOS.
When I build with Xcode I get the following error
Undefined symbol: _CGSizeFromGADAdSize
Undefined symbol: _GADAdSizeEqualToSize
Undefined symbol: _GADAdSizeFromCGSize
Undefined symbol: _GADAdSizeFullWidthPortraitWithHeight
Undefined symbol: _GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth
Undefined symbol: _GADErrorUserInfoKeyResponseInfo
Undefined symbol: _GADLandscapeAnchoredAdaptiveBannerAdSizeWithWidth
Undefined symbol: _GADPortraitAnchoredAdaptiveBannerAdSizeWithWidth
Undefined symbol: _OBJC_CLASS_$_GADAppOpenAd
Undefined symbol: _OBJC_CLASS_$_GADBannerView
Undefined symbol: _OBJC_CLASS_$_GADExtras
Undefined symbol: _OBJC_CLASS_$_GADInterstitialAd
Undefined symbol: _OBJC_CLASS_$_GADMobileAds
Undefined symbol: _OBJC_CLASS_$_GADRequest
Undefined symbol: _OBJC_CLASS_$_GADRewardedAd
Undefined symbol: _OBJC_CLASS_$_GADRewardedInterstitialAd
Undefined symbol: _OBJC_CLASS_$_GADServerSideVerificationOptions
Undefined symbol: _kGADAdSizeSmartBannerLandscape
Undefined symbol: _kGADAdSizeSmartBannerPortrait
The versions of Unity, Admob and Xcode I use are 2021.3.5f1, v7.3.1 and 14.2 respectively.
I also have both a Windows laptop and a Macbook, but I create the project on Windows because Windows has better machine power.
To build to iOS, I build the project for iOS in Editor, move it to my Macbook, and attempt to build it in Xcode.
Does anyone know the cause or solution to these problems?
↧