当前位置 : 主页 > 手机开发 > ios >

Admob SDK complie在iOS 7.1下失败

来源:互联网 收集:自由互联 发布时间:2021-06-11
Xcode 5.1(5B130a) iOS 7.1 使用CocoaPods pod 'Google-AdMob-Ads-SDK' 使用日志编译失败: Undefined symbols for architecture arm64: "_OBJC_CLASS_$_SKStoreProductViewController", referenced from: objc-class-ref in libGoogleAdMobAds.a(
> Xcode 5.1(5B130a)
> iOS 7.1
>使用CocoaPods

pod 'Google-AdMob-Ads-SDK'

使用日志编译失败:

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)
仔细检查以确保在xcode链接框架和库中添加了GAD库.

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

网友评论