coronalabs / corona

Solar2D Game Engine main repository (ex Corona SDK)
https://solar2d.com/
MIT License
2.54k stars 273 forks source link

Error when admob.load is called #732

Closed omeraydin closed 1 month ago

omeraydin commented 1 month ago

Hi, An error occurs in ios when admob.load is called.

This issue is only in ios. Androis is working fine.

Is there any workaround to solve this issue?

Here is the error message.

NSInvalidArgumentException: -[GADRequestConfiguration tagForChildDirectedTreatment:]: unrecognized selector sent to instance 0x600001402500
(
    0   CoreFoundation                      0x000000011b6a6369 __exceptionPreprocess + 242
    1   libobjc.A.dylib                     0x000000010f140106 objc_exception_throw + 62
    2   CoreFoundation                      0x000000011b6bbf1c +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
    3   CoreFoundation                      0x000000011b6aaccc ___forwarding___ + 1459
    4   CoreFoundation                      0x000000011b6ad088 _CF_forwarding_prep_0 + 120
    5   Kuponstar                           0x00000001047c58c2 _ZN11AdMobPlugin4loadEP9lua_State + 1546
    6   Kuponstar                           0x00000001046f1edf _ZNK3Rtt12VideoTexture9GetFilterEv + 326191
    7   Kuponstar                           0x0000000104706986 _ZNK3Rtt12VideoTexture9GetFilterEv + 410838
    8   Kuponstar                           0x00000001046f273e _ZNK3Rtt12VideoTexture9GetFilterEv + 328334
    9   Kuponstar                           0x00000001047074a9 _ZNK3Rtt12VideoTexture9GetFilterEv + 413689
    10  Kuponstar                           0x00000001046f2b08 _ZNK3Rtt12VideoTexture9GetFilterEv + 329304
    11  Kuponstar                           0x00000001046e90de _ZNK3Rtt12VideoTexture9GetFilterEv + 289838
    12  Kuponstar                           0x00000001046eb97d _ZNK3Rtt12VideoTexture9GetFilterEv + 300237
    13  Kuponstar                           0x00000001046f1edf _ZNK3Rtt12VideoTexture9GetFilterEv + 326191
    14  Kuponstar                           0x0000000104706986 _ZNK3Rtt12VideoTexture9GetFilterEv + 410838
    15  Kuponstar                           0x00000001046f273e _ZNK3Rtt12VideoTexture9GetFilterEv + 328334
    16  Kuponstar                           0x00000001047074a9 _ZNK3Rtt12VideoTexture9GetFilterEv + 413689
    17  Kuponstar                           0x00000001046f2b08 _ZNK3Rtt12VideoTexture9GetFilterEv + 329304
    18  Kuponstar                           0x00000001046e90de _ZNK3Rtt12VideoTexture9GetFilterEv + 289838
    19  Kuponstar                           0x0000000104732018 _ZNK3Rtt12VideoTexture9GetFilterEv + 588648
    20  Kuponstar                           0x0000000104731e91 _ZNK3Rtt12VideoTexture9GetFilterEv + 588257
    21  Kuponstar                           0x00000001047c9ed2 _ZN11AdMobPluginC2Ev + 7340
    22  Foundation                          0x000000011d21cd74 __NSINDEXSET_IS_CALLING_OUT_TO_A_BOOL_BLOCK__ + 7
    23  Foundation                          0x000000011d282a9f -[NSBlockOperation main] + 94
    24  Foundation                          0x000000011d285a66 __NSOPERATION_IS_INVOKING_MAIN__ + 17
    25  Foundation                          0x000000011d281c24 -[NSOperation start] + 726
    26  Foundation                          0x000000011d2862b8 __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 17
    27  Foundation                          0x000000011d285ef9 __NSOQSchedule_f + 182
    28  libdispatch.dylib                   0x0000000115c5dbff _dispatch_block_async_invoke2 + 85
    29  libdispatch.dylib                   0x0000000115c4e563 _dispatch_client_callout + 8
    30  libdispatch.dylib                   0x0000000115c5d369 _dispatch_main_queue_drain + 1417
    31  libdispatch.dylib                   0x0000000115c5cdd2 _dispatch_main_queue_callback_4CF + 31
    32  CoreFoundation                      0x000000011b60545f __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
    33  CoreFoundation                      0x000000011b5ffd87 __CFRunLoopRun + 2515
    34  CoreFoundation                      0x000000011b5fefb3 CFRunLoopRunSpecific + 536
    35  GraphicsServices                    0x000000012c6230cb GSEventRunModal + 137
    36  UIKitCore                           0x0000000144cb9c3b -[UIApplication _run] + 875
    37  UIKitCore                           0x0000000144cbeb7c UIApplicationMain + 123
    38  Kuponstar                           0x0000000104669f4e GDTCORMetricsControllerInstanceForTarget + 12263
    39  dyld                                0x000000010d3d7478 start_sim + 10
    40  ???                                 0x0000000204fe22cd 0x0 + 8673698509
)
sekodev commented 1 month ago

This looks like something that could be brought up on the forums. I'd suggest taking it there for a quicker answer.

scottrules44 commented 1 month ago

Was addressed