Other Firebase Components in use: Auth, Analytics, Remote Config, Storage, Dynamic Links
Platform you are using the C++ SDK on: Mac
Platform you are targeting: iOS
[REQUIRED] Please describe the issue here:
While trying to initialize AdMob, I call firebase::gma::SetRequestConfiguration, which ends up throwing an Objective-C exception stating: -[GADRequestConfiguration setTagForUnderAgeOfConsent:]: unrecognized selector sent to instance 0x283a12640
The issue is likely related to pull request: #1537 where it states among changes:
Breaking changes in GADRequestConfiguration:
setSameAppKeyEnabled renamed to setPublisherFirstPartyIDEnabled
tagForUnderAgeofConsent changed from method to property
tagforChildDirectedTreatment changed from method to property
Steps to reproduce:
Reproduces 100% of time in my project, haven't tried to repro on Quickstart. The problem started occurring in Firebase C++ SDK 11.10.0 as I noticed it before and had to always roll back to 11.9.0 where the initialization happens with no issues. When I comment out call to firebase::gma::SetRequestConfiguration, the rest of the initialization and app run also goes without issues.
What happened? How can we make the problem occur?
See the code below I use for initialization, which works fine in 11.9.0
Here is log output with identifiers replaced with XXXX:
2024-05-17 16:52:18.275311-0700 Metal-mobile[21205:3847959] Loading UIApplication category for Firebase App
2024-05-17 16:52:19.266542-0700 Metal-mobile[21205:3848134] 10.25.0 - [FirebaseCore][I-COR000005] No app has been configured yet.
2024-05-17 16:52:20.023556-0700 Metal-mobile[21205:3847959] [SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)")
2024-05-17 16:52:20.023762-0700 Metal-mobile[21205:3847959] [SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)")
2024-05-17 16:52:20.168308-0700 Metal-mobile[21205:3847959] [Firebase/Crashlytics] Version 10.25.0
2024-05-17 16:52:20.232959-0700 Metal-mobile[21205:3847959]
---- Firebase Dynamic Links diagnostic output start ----
Firebase Dynamic Links framework version 10.25.0
System information: OS iOS, OS version 16.2, model iPhone
Current date 2024-05-17 23:52:20 +0000
Device locale en-US (raw en_US), timezone America/Los_Angeles
Specified custom URL scheme is com.example.app and Info.plist contains such scheme in CFBundleURLTypes key.
AppID Prefix: XXXXXXXXXX, Team ID: XXXXXXXXXX, AppId Prefix equal to Team ID: YES
performDiagnostic completed successfully! No errors found.
---- Firebase Dynamic Links diagnostic output end ----
2024-05-17 16:52:20.367782-0700 Metal-mobile[21205:3848179] 10.25.0 - [FirebaseAnalytics][I-ACS023007] Analytics v.10.25.0 started
2024-05-17 16:52:20.375021-0700 Metal-mobile[21205:3848179] 10.25.0 - [FirebaseAnalytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2024-05-17 16:52:20.439030-0700 Metal-mobile[21205:3848148] 10.25.0 - [FirebaseAnalytics][I-ACS044000] GoogleAppMeasurementIdentitySupport dependency is linked.
2024-05-17 16:52:20.439654-0700 Metal-mobile[21205:3848148] 10.25.0 - [FirebaseAnalytics][I-ACS044001] The AdSupport Framework is linked.
2024-05-17 16:52:20.532517-0700 Metal-mobile[21205:3848170] 10.25.0 - [FirebaseAnalytics][I-ACS002002] APMExperimentAlarm scheduled to fire in approx. (s): 14160.20392107964
2024-05-17 16:52:20.587543-0700 Metal-mobile[21205:3847959] applicationSupportDirectory: '/var/mobile/Containers/Data/Application/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/Library/Application Support'
2024-05-17 16:52:20.587958-0700 Metal-mobile[21205:3847959] [logging] misuse at line 179186 of [554764a6e7]
2024-05-17 16:52:20.589496-0700 Metal-mobile[21205:3847959] applicationSupportDirectory: '/var/mobile/Containers/Data/Application/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/Library/Application Support'
2024-05-17 16:52:20.597771-0700 Metal-mobile[21205:3847959] applicationSupportDirectory: '/var/mobile/Containers/Data/Application/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/Library/Application Support'
2024-05-17 16:52:20.618526-0700 Metal-mobile[21205:3847959] Using Auth Prod for testing.
2024-05-17 16:52:20.623696-0700 Metal-mobile[21205:3847959] <UMP SDK> To enable debug mode for this device, set: UMPDebugSettings.testDeviceIdentifiers = @[ @"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" ];
2024-05-17 16:52:20.625603-0700 Metal-mobile[21205:3847959] -[GADRequestConfiguration setTagForUnderAgeOfConsent:]: unrecognized selector sent to instance 0x283a12640
[REQUIRED] Please fill in the following fields:
[REQUIRED] Please describe the issue here:
While trying to initialize AdMob, I call
firebase::gma::SetRequestConfiguration
, which ends up throwing an Objective-C exception stating:-[GADRequestConfiguration setTagForUnderAgeOfConsent:]: unrecognized selector sent to instance 0x283a12640
The issue is likely related to pull request: #1537 where it states among changes:
Breaking changes in GADRequestConfiguration:
Steps to reproduce:
Reproduces 100% of time in my project, haven't tried to repro on Quickstart. The problem started occurring in Firebase C++ SDK 11.10.0 as I noticed it before and had to always roll back to 11.9.0 where the initialization happens with no issues. When I comment out call to
firebase::gma::SetRequestConfiguration
, the rest of the initialization and app run also goes without issues.What happened? How can we make the problem occur? See the code below I use for initialization, which works fine in 11.9.0
Here is log output with identifiers replaced with XXXX:
as well as the call stack:
Relevant Code: