Admob SDK complie在iOS 7.1下失败

时间:2014-03-15 07:58:46

标签: ios xcode admob ios7.1 arm64

  • Xcode 5.1(5B130a)

  • iOS 7.1

  • 使用CocoaPods

    pod 'Google-AdMob-Ads-SDK'
    
使用log:

编译失败
Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_SKStoreProductViewController", referenced from:
      objc-class-ref in libGoogleAdMobAds.a(GADOpener.o)
  "_SKStoreProductParameterITunesItemIdentifier", referenced from:
      -[GADOpener openInAppStore:fallbackURLString:] in libGoogleAdMobAds.a(GADOpener.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

2 个答案:

答案 0 :(得分:5)

仔细检查以确保已在xcode链接框架和库中添加GAD库。

要看的第二件事是Storekit框架。这些给你错误的类来自storekit。检查以确保它已添加到您的项目中

答案 1 :(得分:2)

尝试在项目框架中添加CoreTelephony和CoreText。