Google AdMob 7 integration with cocoapods

I spent a few hours on it and still have no luck.

I have a library (which is a pod) and it uses Google AdMob 7 as a dependency, let's say it's called MyLib

Now that I want to add the pod 'MyLib' to project A, it will install it along with its dependencies, including Google AdMob 7.

The problem is this: when I test the library project containing its source files, it works fine, but when I compile the A project, it does not compile and gives me a compiler error in the import line

@import GoogleMobileAds;

which is in the MyLib source files.

Make it easier

Project -> Contains the pod that I wrote, which is MyLib -> Using AdMob 7 as a pod

Any idea why this is happening?

EDIT:

- , Google , Framework

+4
2

- , , Google Ad Mob .

spec.ios.vendored_frameworks pod Google AdMob SDK Maps SDK iOS cocoapods, pod , :

s.ios.vendored_frameworks = 'Pods/Google-Maps-iOS-SDK/GoogleMaps.framework', 'Pods/Google-Mobile-Ads-SDK/GoogleMobileAdsSdkiOS-7.0.0/GoogleMobileAds.framework'
+4

Cocoa :

Google Ad Pods.

GoogleMobileAds 20MB

Google-Mobile-Ads-SDK 40MB , .

- Cocoa pods, , Google Ad SDK , .

, , :

#import <GoogleMobileAds/GoogleMobileAds.h>
+3

All Articles