我想在当前项目中实现AdMob功能。我在实施该技术时遇到了一些问题。你能帮我这个忙吗?

我是第一次将AdMob集成到我的iOS应用程序中。在此过程中,将AdMob SDK添加到app时,出现以下错误。

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

最佳答案

关注Google AdMob guide

您必须导入以下框架-

AdSupport,
AudioToolbox,
AVFoundation,
CoreGraphics,
CoreTelephony,
MessageUI,
StoreKit,
SystemConfiguration

关于ios - 如何将AdMob集成到iPhone应用程序中,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/23491025/

10-09 18:46