谷歌移动广告sdk链接问题

时间:2015-02-10 11:38:59

标签: ios linker ads

我在整合Google移动广告SDK时遇到了问题。 我正在使用Xcode 5.1和我尝试可可豆荚。 我做的是以下内容:

在我写的pod文件中

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
pod 'Google-Mobile-Ads-SDK', '~> 7.0'

然后我运行pod install我得到了

Installing Google-Mobile-Ads-SDK (7.0.0)

在我的应用源代码中,我写道:

#import <GoogleMobileAds/GoogleMobileAds.h>

然后

GADAdSize adMobSize = kGADAdSizeSmartBannerLandscape;
GADBannerView *adMobView = [[GADBannerView alloc]
initWithAdSize:adMobSize];

但是我收到了以下链接错误:

(null): "_OBJC_CLASS_$_GADBannerView", referenced from:

(null): Objc-class-ref in RMAMainViewController.o

(null): "_kGADAdSizeSmartBannerLandscape", referenced from:

(null): -[RMAMainViewController initWithNibName:bundle:] in RMAMainViewController.o

(null): Symbol(s) not found for architecture x86_64

(null): Linker command failed with exit code 1 (use -v to see invocation)

我该如何解决?

0 个答案:

没有答案
相关问题