I am following the instructions on the following page to integrate admob with my iOS application:
Unfortunately, when I try:
@import GoogleMobileAds;
my project won't compile, with the error:
Use of '@import' when modules are disabled
I tried the following:
Using
#import
instead of@import
. This does not work, because "GoogleMobileAds" does not show up. Instead I have to import the framework, which leads to many errors showing up, which xcode doesn't even display because there are too many.Going to my target -> build settings -> Apple LLVM 6.0 - Language - Modules -> Enable Modules (C and Objective-C) and setting it to "YES". Even after doing this the same error appears.
How does one fix this ?