xamarin / GoogleApisForiOSComponents

MIT License
225 stars 161 forks source link

How to show AdInspector? (Xamarin.iOS) #635

Open DaniilFurik opened 11 months ago

DaniilFurik commented 11 months ago

NuGet - Xamarin.Google.iOS.MobileAds(8.13.0.3)

Google.MobileAds.MobileAds.SharedInstance.PresentAdInspectorFromViewController(UIViewController, AdInspectorCompletionHandler) throws an exception:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[GADMobileAds presentAdInspectorFromViewController:viewController:]: unrecognized selector sent to instance 0x280ae3080' First throw call stack: (0x19f828870 0x197b4bc00 0x19f8b919c 0x19f76dff8 0x19f8aeb10 0x1054b3e14 0x105471634 0x1046e9f44 0x104c82d28 0x104cc3988 0x1a1e2a43c 0x1a1e2ac50 0x1a1a891bc 0x1a20315e0 0x1a1a88ce0 0x1a19e4a14 0x1a19e41ac 0x1a19e3824 0x1a19c5a80 0x1a19c5b94 0x1a0db3098 0x1a76f9300 0x1a7707998 0x1a77075b0 0x19f77320c 0x19f76ff18 0x19f76f668 0x1e2b3a5ec 0x1a1b8c294 0x1a1b8b8d0 0x106531030 0x104cb6018 0x104c5265c 0x104c52800 0x1046bd4d0 0x104b82520 0x1063a9fa8 0x106463bf4 0x106469efc 0x1063882b8 0x106571888 0x1046bd108 0x1c21c2dcc) Xamarin.iOS: Received unhandled ObjectiveC exception: NSInvalidArgumentException -[GADMobileAds presentAdInspectorFromViewController:viewController:]: unrecognized selector sent to instance 0x280ae3080