googleads-mobile-unity
googleads-mobile-unity copied to clipboard
undefined symbol in ios
Hi, i try to use adMob in IOS. I always run in the issue with the undefined symbols. I try every solution i found on sackoverflow or here but nothing worked.
i tried:
-
in IOS Resolver all different options. I must cocoapod integration set to none otherwise unity run in a error.
-
remove admob and add again
-
install cocoapot manually in xcode because in unity it dose not work.
- Unity version: 2021.3.4f1
- Google Mobile Ads Unity plugin version: 7.0.2
- Platform: iOS
- Platform OS version: iOS 14
how can i fix this?
Undefined symbol: OBJC_CLASS$_GADRequest Undefined symbol: OBJC_CLASS$_GADInterstitialAd Undefined symbol: OBJC_CLASS$_GADBannerView Undefined symbol: OBJC_CLASS$_GADRewardedAd Undefined symbol: _kGADAdSizeSmartBannerPortrait Undefined symbol: _GADPortraitAnchoredAdaptiveBannerAdSizeWithWidth Undefined symbol: _CGSizeFromGADAdSize Undefined symbol: _GADLandscapeAnchoredAdaptiveBannerAdSizeWithWidth Undefined symbol: _GADAdSizeFromCGSize Undefined symbol: _kGADAdSizeSmartBannerLandscape Undefined symbol: _GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth Undefined symbol: _GADAdSizeEqualToSize Undefined symbol: OBJC_CLASS$_GADRewardedInterstitialAd Undefined symbol: _GADAdSizeFullWidthPortraitWithHeight Undefined symbol: OBJC_CLASS$_GADServerSideVerificationOptions Undefined symbol: OBJC_CLASS$_GADAppOpenAd Undefined symbol: OBJC_CLASS$_GADMobileAds Undefined symbol: OBJC_CLASS$_GADExtras Undefined symbol: _GADErrorUserInfoKeyResponseInfo
Hi, can you double check the Assets/ExternalDependencyManager/iOS Resolver/Settings? Make sure you have pods configured and installed correctly and are linking libraries statically. If you are still blocked after this review feel free to reply with your setup.
Hi, i have pods installed but i cannot make a build when i use default settings in Assets/ExternalDependencyManager/iOS Resolver/Settings.
unity run in this error:
After the failure, "pod repo update" was executed and failed. "pod install" was then attempted again, and still failed. This may be due to a broken CocoaPods installation. See: https://guides.cocoapods.org/using/troubleshooting.html for potential solutions.
pod install output:
Analyzing dependencies
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require': dlopen(/Users/ipezbook/.gem/ruby/2.6.0/gems/ffi-1.14.2/lib/ffi_c.bundle, 0x0009): tried: '/Users/ipezbook/.gem/ruby/2.6.0/gems/ffi-1.14.2/lib/ffi_c.bundle' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')) - /Users/ipezbook/.gem/ruby/2.6.0/gems/ffi-1.14.2/lib/ffi_c.bundle (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' from /Users/ipezbook/.gem/ruby/2.6.0/gems/ffi-1.14.2/lib/ffi.rb:6:in rescue in <top (required)>' from /Users/ipezbook/.gem/ruby/2.6.0/gems/ffi-1.14.2/lib/ffi.rb:3:in <top (required)>' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' from /Users/ipezbook/.gem/ruby/2.6.0/gems/ethon-0.12.0/lib/ethon.rb:2:in <top (required)>'
with this settings below i can do a build but run in the mentioned errors: undefined symboles
I have the same problem
I have the same issue. In some old version of the google-ads-unity I had files from the error inside Assets/Plugins/iOS folder. No errors at iOS resolver step
Resolved by totally removing any mentions of an old Google-ADS version and reinstalling it again
I also have this problem, Does anyone have a solution to this problem?
Unity 2021.3.14f1 & 2020.3.38f1 Google Mobile Ads Unity plugin version: 7.3.1
I also have this problem, Does anyone have a solution to this problem?
Unity 2021.3.14f1 & 2020.3.38f1 Google Mobile Ads Unity plugin version: 7.3.1
I also have the same issue.
I solved this version using source code.
https://github.com/googleads/googleads-mobile-unity/archive/refs/tags/v7.3.1.zip
[Some source code compilation issues need to be fixed.]
7.3.0 has no issue with ios Compilation. And Source code building seems work, too (as AbelTeam said, there are stupid issues: missing #if UNITY_IOS, missing GoogleMobileAds.Api asmdef etc). Based on the experience with this plugin for more than 1 year, one thing I found is there is no QA process in managing this "official" plugin. There can be mistakes and I also understand it as a programmer, but those mistakes must be found and filtered in QA process. If a new version makes a build process fail, that version MUST NOT be shipped. Wake up google, don't do tihs as a hobby. Game Ads Market is a HUGE $0.6B market in global and this plugin is a key part of that market. Please be professional, and put at least an elementary QA process here.
Since there were no recent activities for this issue, we are therefore reluctantly going to close this bug for now.
If you are still experiencing the problem, please file a new issue with the same description, what happens and system / network tracing / Charles logs.
All system setups can be slightly different, so it's always better to open new issues and reference the related ones. Thanks for your contribution.