When I use this plugin to show the native ads, my iOS app crashes with the below exception:
'NSInvalidArgumentException', reason: '-[UIImageView autoSetDimensionsToSize:]: unrecognized selector sent to instance
It appears that Exception is thrown from NativeAdView.swift file
let adIconView: UIImageView = {
let imageView = UIImageView()
imageView.autoSetDimensions(to: CGSize(width: 40, height: 40))
return imageView
}()
I have got the required properties in the info.plist file (GADApplicationIdentifier and io.flutter.embedded_views_preview).
When I use this plugin to show the native ads, my iOS app crashes with the below exception:
'NSInvalidArgumentException', reason: '-[UIImageView autoSetDimensionsToSize:]: unrecognized selector sent to instance It appears that Exception is thrown from NativeAdView.swift file
let adIconView: UIImageView = { let imageView = UIImageView() imageView.autoSetDimensions(to: CGSize(width: 40, height: 40)) return imageView }()
I have got the required properties in the info.plist file (GADApplicationIdentifier and io.flutter.embedded_views_preview).
What could be the reason for this?