admob-inline-ads-in-flutter
admob-inline-ads-in-flutter copied to clipboard
Use updated `GADNativeAdView` custom class
Replace use of GADUnifiedNativeAdView
in the provided view description with GADNativeAdView
.
This handles errors of the form:
2022-10-14 13:38:20.473779+1100 AdMob inline ads[20051:1116210] [Storyboard] Unknown class GADUnifiedNativeAdView in Interface Builder file.
2022-10-14 13:38:20.515415+1100 AdMob inline ads[20051:1116210] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIView 0x7fa98508f0d0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key bodyView.'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff203feba4 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff201a1be7 objc_exception_throw + 48
2 CoreFoundation 0x00007fff203fe845 -[NSException init] + 0
3 Foundation 0x00007fff20796332 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 315
4 UIKitCore 0x00007fff2561c4b7 -[UIView(CALayerDelegate) setValue:forKey:] + 171
5 UIKitCore 0x00007fff24c1c820 -[UIRuntimeOutletConnection connect] + 109
6 CoreFoundation 0x00007fff203e92cd -[NSArray makeObjectsPerformSelector:] + 228
7 UIKitCore 0x00007fff24c125bc -[UINib instantiateWithOwner:options:] + 2185
8 UIKitCore 0x00007fff24c12eb6 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 144
9 AdMob inline ads 0x000000010a220d9c -[ListTileNativeAdFactory createNativeAd:customOptions:] + 172
10 AdMob inline ads 0x000000010a251d7e -[FLTNativeAd adLoader:didReceiveNativeAd:] + 270
11 AdMob inline ads 0x000000010a39e425 GAD_GADAdLoader_x86_64_9_10_0 + 7466
12 AdMob inline ads 0x000000010a39d53d GAD_GADAdLoader_x86_64_9_10_0 + 3650
13 libdispatch.dylib 0x000000010a850848 _dispatch_call_block_and_release + 12
14 libdispatch.dylib 0x000000010a851a2c _dispatch_client_callout + 8
15 libdispatch.dylib 0x000000010a8601f1 _dispatch_main_queue_callback_4CF + 1197
16 CoreFoundation 0x00007fff2036c84d __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
17 CoreFoundation 0x00007fff203670aa __CFRunLoopRun + 2772
18 CoreFoundation 0x00007fff203660f3 CFRunLoopRunSpecific + 567
19 GraphicsServices 0x00007fff2c995cd3 GSEventRunModal + 139
20 UIKitCore 0x00007fff25059f42 -[UIApplication _run] + 928
21 UIKitCore 0x00007fff2505eb5e UIApplicationMain + 101
22 AdMob inline ads 0x000000010a220cc8 main + 104
23 dyld 0x000000010a6c5ee9 start_sim + 10
24 ??? 0x0000000000000001 0x0 + 1
)
libc++abi: terminating with uncaught exception of type NSException
dyld4 config: DYLD_ROOT_PATH=/Applications/Xcode-13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/tom/Library/Developer/Xcode/DerivedData/Runner-abjjhlmeqspscledmzcadankomdj/Build/Products/Debug-iphonesimulator:/Applications/Xcode-13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Applications/Xcode-13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode-13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/Applications/Xcode-13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib DYLD_FRAMEWORK_PATH=/Users/tom/Library/Developer/Xcode/DerivedData/Runner-abjjhlmeqspscledmzcadankomdj/Build/Products/Debug-iphonesimulator
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIView 0x7fa98508f0d0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key bodyView.'
terminating with uncaught exception of type NSException
CoreSimulator 783.5 - Device: iPhone 8 (07C60428-2B5F-4137-A0EA-C44C385B640F) - Runtime: iOS 15.2 (19C51) - DeviceType: iPhone 8
and partially completes the work done as part of 68d8fe768fb8a2915d301be1ebf102029f94c6fb
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.