SoftCoder
SoftCoder

Reputation: 167

Google AdMob error in iOS 7

I've integrated AdMob in my iOS project but it gives me the following error.

module 'GoogleMobileAds' not found

I have already imported the AdMob SDK into my project and added the following import.

@import GoogleMobileAds;

Upvotes: 2

Views: 121

Answers (2)

Nilesh Patel
Nilesh Patel

Reputation: 6394

Change the import calls:

@import GoogleMobileAds

to this

#import <GoogleMobileAds/GoogleMobileAds.h>

Upvotes: 0

Daniel Storm
Daniel Storm

Reputation: 18878

In the Build Settings of you project set the Define Modules to YES. Then, remove the AdMob Framework from your project, clean your project, and import the AdMob Framework again.

Upvotes: 3

Related Questions