How I fix a “GADInsterstitial.h” file not found… b

2019-07-21 08:32发布

问题:

I am having trouble installing a Interstitial ad into my Xcode project. I have download Google Ad Mob 7.0.0 and have continued with the instructions to implement an interstitial ad. link

When I go to #import "GADInterstitial.h" I am getting an error that the file not found. However, as seen in the picture attached the file is there as I added the files to the project. How do I correct this?

回答1:

You need to reference the framework.

#import <GoogleMobileAds/GADInterstitial.h>

And if you are using modules ( @import GoogleMobileAds ) as is visible on the top, you should not need this particular import line for interstitial at all.



标签: ios xcode admob