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?
were you able to find a solution?
I went down a rabbit hole of solutions but the final was disabling bitcode then it worked.
bitocode in my case is disabled but still does not build… can anyone suggest anything plz?
Xcode cannot find code for these functions. I’m not familiar with Admob version for Unity, but looking at Get Started | iOS | Google for Developers seems that these missing symbols rest in GoogleMobileAds.xcframework. Worth to check this file is included in Xcode project in “Frameworks,Libraries and Embedded Content” section in General tab of UnityFramework target.
Try to generate and build it solely on mac, something is wrong with admob setup and it might be that doing it on Windows it goes wrong because of missing native tools or paths or…
I got the same problem with undefined symbol. Fix:
Remove dir with builded game
Update Google Mobile Ads, update Cocoapods (by homebrew), Update Xcode
New build and run in unity
Works ok
I have the same issue, and so far, no solution has worked. I’ve uninstalled Xcode. Essentially rebuilt the game in Unity. Everything is the latest version. Nothing has worked.
I have same problem on
unity: 2022.3.52
admob: 10.0.0
Did you open the xcworkspace project file instead of xcodeproj file? If so check once if pods are successfully installed or not.
1 Like
I fixed it. In my case, xcworkspace was never created. I researched the cause on the internet, I have determined that concurrent-ruby ver.1.3.5 is the cause of pod not operating properly.
So I downgrade concurrent-ruby to 1.3.4, and pod works fine.
opened 04:46PM - 16 Jan 25 UTC
closed 10:10AM - 17 Jan 25 UTC
Getting this error on my React-native pod install step.
```
$ pod "_1.16.2_" "… --version"
/Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/activesupport-7.0.8/lib/active_support/logger_thread_safe_level.rb:12:in `<module:LoggerThreadSafeLevel>': uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger (NameError)
from /Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/activesupport-7.0.8/lib/active_support/logger_thread_safe_level.rb:9:in `<module:ActiveSupport>'
from /Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/activesupport-7.0.8/lib/active_support/logger_thread_safe_level.rb:8:in `<top (required)>'
from <internal:/Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/activesupport-7.0.8/lib/active_support/logger_silence.rb:5:in `<top (required)>'
from <internal:/Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/activesupport-7.0.8/lib/active_support/logger.rb:3:in `<top (required)>'
from <internal:/Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/activesupport-7.0.8/lib/active_support.rb:29:in `<top (required)>'
from <internal:/Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.16.2/lib/cocoapods.rb:7:in `<top (required)>'
from <internal:/Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.16.2/bin/pod:36:in `<top (required)>'
from /Users/vagrant/.asdf/installs/ruby/3.0.0/bin/pod:23:in `load'
from /Users/vagrant/.asdf/installs/ruby/3.0.0/bin/pod:23:in `<main>'
command failed, error: exit status 1
```
Great!
If xcworkspace is not created at all, it means pods didn’t get install properly leading to missing frameworks.
Anyways, glad it’s working now!
Cheers!
1 Like
mmSimon
September 25, 2025, 2:26pm
14
I was getting this issue using AppLovin MAX + AdMob since forever and I finally figured out something is messing up the linker flags.
Try setting your Unity-iPhone -> Build Settings -> Linking - General -> Other Linker Flags to nothing and it might resolve your linker issues.
I automated this in a Post Process script. If anyone’s interested I can share my solution.