I did like in this video.
I tried cleaning but did not solved.I added GoogleMobileAds.framework
The errors is "..ViewController.swift:12:8: Could not build Objective-C module 'GoogleMobileAds''
"
line 12: import GoogleMobileAds
I was facing the same problem while following tutorial from Google (https://developers.google.com/admob/ios/quick-start)
I also tried @Luda solution by adding Manually and succeed. After that, I decide to try again with CocoaPods by using Bridging-Header (same way with adding Analytics Lib):
#import <GoogleMobileAds/GoogleMobileAds.h>
to your Bridging HeaderWhat worked for me is installing GoogleMobileAds framework manually. https://developers.google.com/mobile-ads-sdk/docs/dfp/ios/quick-start#manually_using_the_sdk_download
After searching and searching through Stackoverflow and nothing helping, I finally just deleted the entire GoogleMobileAds folder from my project (not just the reference, I deleted the actual folder in the pod folder). I also removed all references to GoogleMobileAds and ran pod install
and it finally fixed it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With