Build iOS failed: Undefined symbols for architecture arm64: "_GADURequestInterstitial"
See original GitHub issue- 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
)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:18
- Comments:56 (3 by maintainers)
Top Results From Across the Web
Undefined symbols for architecture arm64
Simple Solution Go to Target ->Linking -> other linker Flag and add $(inherited) in other linker flag in both Debug and Release. ·...
Read more >Google mobile ads in unity (iOS) shows error
I take the build in Xcode during linking. It shows the following errors: Undefined symbols for architecture arm64: "_GADURequestInterstitial", ...
Read more >Undefined symbols for architecture arm64 in Xcode 14
I am facing an issue when building a project that builds without issue in Xcode 13.4.1, but hits a build error in Xcode...
Read more >Xcode Build fails - Undefined symbols for architecture arm64
Hey, I am really hoping someone can help me here, I have a unity project that runs in editor no issues, When I...
Read more >Unity + iOS Build Error in Xcode (Undef symbols for ...
When I create a build for iOS using Unity 2020.1.9f, I am seeing the following build error in ... Undefined symbols for architecture...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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.