xcode - How do I integrate AdMob into an iOS app? Other tutorials do not seem to work with the latest updates -


i trying integrate google`s admob ios app, using xcode 7.2, swift 2.0, , ios 9.2. followed official tutorial on this: https://developers.google.com/admob/ios/quick-start; , have tried both methods: streamlined method cocoapods, , manually using sdk download.

in streamlined method, had lot of trouble cocoapods, destroyed entire xcode project. experience made me never use cocoapods again. unless know lot on cocoapods, not ask me use them.

in manual method, unable import framework code, although imported project. error: no such module 'googlemobileads'. framework visible in project navigator other frameworks, in linked frameworks , libraries other frameworks.

due unable use of code listed in tutorial, , have no code show. if looking code related integrating admob, in tutorial. please note beginner in swift, , have no knowledge in objective-c. thanks.

import googlemobileads 

figured out solution myself. noticed in tutorial, there important section promptly ignored:

add other frameworks sdk requires
sdk depends on following ios development frameworks may not part of project:
adsupport
audiotoolbox
avfoundation
coregraphics
coremedia
coretelephony
eventkit
eventkitui
mediaplayer
messageui
storekit
systemconfiguration

you must make sure these frameworks part of project, since admob depends on them. if else having similar issues described above, try this, or read tutorial carefully.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -