googleads-mobile-unity: Build iOS failed: Undefined symbols for architecture arm64: "_GADURequestInterstitial"
- Unity version: 2020.3.1 - 2020.3.6
- Google Mobile Ads Unity plugin version: 6.0.0
- Platform: iOS
- Platform OS version: n/a
- Any specific devices issue occurs on: n/a
- Mediation ad networks used, and their versions:n/a
- Xcode: 12.2
Steps to reproduce:
=> Create empty Unity project
=> Copy sample HelloWorld to Assets folder
=> Update Admob appId
=> Use original iOS Resolver Settings (enable use_frameworks!
+ enable Always add the main target
)
=> Build to Xcode
=> Build using Xcode
Changing iOS Resolver Settings gives same result:
- Disable
use_frameworks!
- Disable
Always add the main target
)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 18
- Comments: 56 (3 by maintainers)
@jungletree Thanks for explaining the problem.
We changed how we package the plugin for v6.0, and the issue lies in the dll build, not in the source code. So please import our source code instead of the unity package for now. We will release the fix soon.
I was able to get around this by commenting out line
7897
inClasses\Native\GoogleMobileAds.iOS.cpp
in XCode:This looks like the casting / native invocation of the
GADURequestInterstitial
function. Without this invocation, the compiler shouldn’t look for it.Note that this code looks auto-generated, so it may not appear consistently on line
7897
.Also note that I don’t use interstitials in my code, so I’m not sure if this disables interstitials entirely or not. It may be more correct to implement the function as indicated by @jungletree above.
@onom88 It would probably be sufficient to reduce Assets/Plugins/iOS/Workaround.m to just this, with no headers needed at all:
To anyone having issues with AdColony Mediation.
GoogleMobileAdsSettings.asset
fileGoogleMobileAds
folderPlugins/iOS
andPlugins/Android folder
GoogleMobileAdsSettings.asset
fileGADUAdNetworkExtras.h
file fromsource/plugin/Assets/Plugins/iOS
and paste it intoPlugins/iOS
same problem
unity 2020.2.6f1 xcode 12.5
I updated to Xcode 14, and all errors were gone.
Not the optimal solution since one less mediation network can affect ads income. But this was the only way I could build the game. Let’s hope it gets fixed soon
@blue7un Okay, I’m going to try adding
GADU*
-files from source/plugin/Assets/Plugins/iOS toAssets/Plugins/iOS/
.