Skip to content

App crash on iOS versions 18.3.4 and below when using gma_mediation_pangle with iOS Deployment Target set to 15 #1296

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
khjde1207 opened this issue Apr 8, 2025 · 3 comments

Comments

@khjde1207
Copy link

khjde1207 commented Apr 8, 2025

[REQUIRED] Step 1: Describe your environment

Plugin Version

This issue occurs on iOS versions 18.4 and below. It does not occur on version 18.5 (latest version).
This issue has not been observed on simulators and only occurs on actual devices.

Plugin Versions

flutter --version :

Flutter 3.29.2 • channel stable • [https://github.com/flutter/flutter.git](https://www.google.com/url?sa=E&q=https%3A%2F%2Fgithub.com%2Fflutter%2Fflutter.git)
Framework • revision c236373904 (4 weeks ago) • 2025-03-13 16:17:06 -0400
Engine • revision 18b71d647a
Tools • Dart 3.7.2 • DevTools 2.42.3

Plugin Version :

google_mobile_ads: ^5.3.1
gma_mediation_pangle: ^2.1.0

[REQUIRED] Step 2: Describe the problem

Steps to Reproduce

I am using gma_mediation_meta, gma_mediation_applovin, and gma_mediation_pangle through mediation.
This issue only occurs with gma_mediation_pangle.

To find this error, I meticulously removed dozens of dependencies one by one and discovered that adding gma_mediation_pangle causes the app to crash.

Subsequently, I compared the configurations with a newly created project step by step and found that the issue is related to the iOS Deployment Target version.

  1. flutter create test

  2. edit pubspec.yaml

google_mobile_ads: ^5.3.1
gma_mediation_pangle: ^2.1.0
  1. cd ios && pod install

  2. edit info.plist
    https://developers.google.com/ad-manager/mobile-ads-sdk/ios/quick-start?hl=ko#update_your_infoplist
    add GADApplicationIdentifier

  3. open in xcode - Runner(project) - Build Settings - iOS Deployment Target - edit iOS 15

Image

  1. run

  2. You can observe that the app crashes. When running in debug mode, you can check the error location in Xcode.

Image

  1. When running in release mode, you will see a crash due to termination.
[✓] Flutter (Channel stable, 3.29.2, on macOS 15.4 24E248 darwin-arm64, locale ko-KR) [380ms]
    • Flutter version 3.29.2 on channel stable at /Users/khjde/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c236373904 (4 weeks ago), 2025-03-13 16:17:06 -0400
    • Engine revision 18b71d647a
    • Dart version 3.7.2
    • DevTools version 2.42.3

[✗] Android toolchain - develop for Android devices [315ms]
    • Android SDK at /Users/khjde/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.

[!] Xcode - develop for iOS and macOS (Xcode 16.3) [1,990ms]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16E140
    ! CocoaPods 1.15.2 out of date (1.16.2 is recommended).
        CocoaPods is a package manager for iOS or macOS platform code.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/to/platform-plugins
      To update CocoaPods, see https://guides.cocoapods.org/using/getting-started.html#updating-cocoapods

[✓] Chrome - develop for the web [10ms]
    • Chrome at /Applications/Google [Chrome.app/Contents/MacOS/Google](http://chrome.app/Contents/MacOS/Google) Chrome

[!] Android Studio (not installed) [9ms]
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/to/macos-android-setup for detailed instructions).

[✓] VS Code (version 1.99.0) [9ms]
    • VS Code at /Applications/Visual Studio [Code.app/Contents](http://code.app/Contents)
    • Flutter extension version 3.108.0

[✓] Connected device (4 available) [6.3s]
    • 홍현준의 iPhone (mobile)            • 00008030-000949111A63802E • ios            • iOS 18.3.2 22D82
    • macOS (desktop)                 • macos                     • darwin-arm64   • macOS 15.4 24E248 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad     • darwin         • macOS 15.4 24E248 darwin-arm64
    • Chrome (web)                    • chrome                    • web-javascript • Google Chrome 135.0.7049.42

[✓] Network resources [492ms]
    • All expected network resources are available.
@malandr2
Copy link
Collaborator

Hi @khjde1207, I'm unable to replicate this using our mediation_example and adding gma_mediation_pangle: ^2.1.0 to the project. I can run the project just fine. I'm using Xcode version 16.2.

Are you able to replicate using our example project?

@malandr2 malandr2 added the feedback required Further information is requested label Apr 10, 2025
@khjde1207
Copy link
Author

khjde1207 commented Apr 11, 2025

Hello,
I am unable to reproduce the issue in the mediation_example project. I have compared it with a newly created project, but I haven't been able to identify any differences.

https://github.com/khjde1207/pangle_test

This project was created using Flutter version 3.29.2 with a fresh flutter create, and I only added the ad functionality and modified the SDK version.
My Xcode version is 16.3.
If the issue is not reproducible with the provided project, it might be related to the Xcode version.
The app build deployed in March worked fine, but this issue is occurring only in the app versions deployed around April 7th. Xcode was automatically updated in early April.

Thank you.

@github-actions github-actions bot removed the feedback required Further information is requested label Apr 11, 2025
@malandr2
Copy link
Collaborator

ACK. It's possible it's related to Xcode version. Suggest to pry more into that. At this time closing this out as we've determined it's not something that can be directly addressed in the google_mobile_ads flutter plugin our the mediation plugins. Thanks!

@malandr2 malandr2 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants