Skip to content

i CANT TEST MY GAME IN SIMULATOR BECAUSE OF ADMOB SDK #4137

@jaakwin

Description

@jaakwin

Hello

I’m using the latest Google Mobile Ads Unity plugin and I’m trying to run my Unity iOS build on the iOS Simulator. Even with Unity set to Target SDK = Simulator SDK, the Xcode build fails.

Issue (Simulator linking error)

Xcode shows:
“Building for 'iOS-simulator', but linking in object file … unity-plugin-library.a … (GADUConsentForm.o) built for 'iOS'”
This indicates a device-only object is being linked when building for the simulator.

Google Mobile Ads Unity plugin: v11.0.0
Xcode: 26.4
Unity : 6000.2.13f
macOS: Apple M3 Max
Machine: Apple Silicon
iOS target: 13.0+
CocoaPods / EDM4U: Yes

What I tried

Confirmed Unity export is Simulator SDK
Deleted Xcode DerivedData and rebuilt to a fresh folder
Force Resolve (EDM iOS Resolver) + pod install
Opened workspace when Pods exist
Added -ObjC to linker flags
Checked that plugin files are included in UnityFramework (Target Membership / Compile Sources)

Request

Can you confirm whether the current plugin version officially supports running on iOS Simulator, and if so:
What is the correct setup to avoid GADUConsentForm.o built for iOS in simulator builds?
Why are _GADU… symbols missing under UnityFramework in the latest version, and what files/targets should include the GADU bridge?

Thank you.

[REQUIRED] Step 1: Describe your environment

  • Unity version: 6000.2.13f
  • Google Mobile Ads Unity plugin version: v11.0.0
  • Plugin installation method: _____ (Unity package manager, .unitypackage import)
  • Platform: OS,Unity
  • Platform OS version: _____ (eg iOS 10, Android 9)
  • Any specific devices issue occurs on: _____
  • Mediation ad networks used, and their versions: _____

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

What happened? How can we make the problem occur?
This could be a description, log/console output, etc.

Please share a downloadable sample project that reproduces the bug, if
available. This greatly helps us to diagnose and fix the issue faster.

Relevant Code:

// TODO(you): code here to reproduce the problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions