Hello,
Using xcode's instrument to find memory leaks in my application, I found that I had 15 memory leaks. After searching, I found the problem: google Mobile Ads. If I deactivate Google mobile Ads.
To confirm this I created a new SwiftUI project with the simple text "hello Word". I initialized Google Mobile Ads in appDelegate ( in application(application:didFinishLaunchingWithOptions:), with GADMobileAds.sharedInstance().start(completionHandler: nil) that's it.
the memory leak problem is still present
Google Mobile Ads: 10.9
Xcode: 14.3.1
Simulator: iOS 16.4 on iPhone 14 Pro
macoOS: 13.5
Here is a test project: https://github.com/Djibs/testMemoryLeaksGoogleMobileAdsv10.9/tree/main/testMemoryLeaksGoogleMobileAds
You just have to create a simple project in swiftUI and import google Mobile Ads.
You initialize google mobile ads in the AppDelagate class.
Thank you
![]() |
Mobile Ads SDK Team |