duyduong / flutter_native_admob

Plugin to integrate native firebase admob to Flutter application
MIT License
62 stars 85 forks source link

BUILD FAILED Xcode #95

Open padgithub opened 2 years ago

padgithub commented 2 years ago

Error output from Xcode build: ↳ ** BUILD FAILED ** Xcode's output: ↳ /Users/neolab/.pub-cache/hosted/pub.dartlang.org/flutter_native_admob-2.1.0+3/ios/Classes/NativeAdmobController.swift:25:28: error: cannot find type 'GADUnifiedNativeAd' in scope var nativeAdChanged: ((GADUnifiedNativeAd?) -> Void)? ^~~~~~~~~~~~~~~~~~ /Users/neolab/.pub-cache/hosted/pub.dartlang.org/flutter_native_admob-2.1.0+3/ios/Classes/NativeAdmobController.swift:26:19: error: cannot find type 'GADUnifiedNativeAd' in scope var nativeAd: GADUnifiedNativeAd? { ^~~~~~~~~~~~~~~~~~ /Users/neolab/.pub-cache/hosted/pub.dartlang.org/flutter_native_admob-2.1.0+3/ios/Classes/NativeAdmobController.swift:108:34: error: cannot find type 'GADUnifiedNativeAdLoaderDelegate' in scope extension NativeAdmobController: GADUnifiedNativeAdLoaderDelegate { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/neolab/.pub-cache/hosted/pub.dartlang.org/flutter_native_admob-2.1.0+3/ios/Classes/NativeAdmobController.swift:110:79: error: cannot find type 'GADRequestError' in scope func adLoader(_ adLoader: GADAdLoader, didFailToReceiveAdWithError error: GADRequestError) { ^~~~~~~~~~~~~~~

hicnar commented 2 years ago

@padgithub This is related to changes in Google Ads library for both iOS and Android. Plenty of forks where this has been fixed.