Reputation: 11
Constantly struggling to implement AdMob ads into my iOS app manually but no luck - I have inserted GoogleMobileAds.framework in project folder where the ViewController.swift and AppDelegate.swift was & added all required frameworks under 'Linked Frameworks and Libraries', changed Bitcode to 'NO' in Build Settings
Typed 'import GoogleMobileAds' in ViewControllerSwift.swift but it states 'No such module GoogleMobileAds'
What am I missing here? Im using XCode 8.3.3 and Swift 3
Upvotes: 1
Views: 469
Reputation: 27221
https://firebase.google.com/docs/ios/setup
Read the manuals more carefully
$ sudo gem install cocoapods
2.
$ cd your-project directory
$ pod init
pod 'Firebase/Core' pod 'Firebase/Admob'
4.
$ pod install
$ open your-project.xcworkspace
Upvotes: 1
Reputation: 2394
Admob is part of Firebase now so install pod files below and then try to import GoogleMobileAds
pod 'Firebase/Core'
pod 'Firebase/AdMob'
Upvotes: 1