Skip to content

Crash on iOS Simulator with AdMob (Xcode) #370

@lsantaniello

Description

@lsantaniello

Hi everyone,

I’m testing my Ionic + Capacitor app with the AdMob plugin on the iOS simulator (Xcode), and the app crashes immediately on startup.

In the Xcode console I always see this log right before the crash:

Failed to resolve host network app id to config: bundleID: com.apple.WebKit.Networking instance ID: Optional([_EXExtensionInstanceIdentifier: ...])
Thread 4: EXC_BAD_ACCESS (code=EXC_I386_GPFLT)

The crash happens only on the simulator. On a physical iPhone the app works fine and AdMob loads as expected.

My setup:

  • Ionic + Capacitor
  • Latest AdMob plugin
  • Xcode Version 16.3 (16E140)
  • Testing on iOS simulator iPhone 16 Pro (iOS 18.4)

Has anyone else experienced this issue? Is there a recommended way to disable AdMob initialization when running in the simulator so the app doesn’t crash?

Thanks!

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