3
  • 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)
4

2 回答 2

5

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

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

于 2014-03-15T09:20:58.177 回答
2

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

于 2014-03-16T15:37:13.313 回答