GADMasterViewController

GADMasterViewController

H,我使用Google的admob,我添加了所有框架,我完全按照他们在指导原则中所做的做。但是在我建立之后,这个错误出现了。我通过了一些关于stackoverflow的解决方案,但无法解决,请帮助我。

  "_CGSizeFromGADAdSize", referenced from:


      -[GADMasterViewController init] in GADMasterViewController.o


      -[GADMasterViewController resetAdView:] in GADMasterViewController.o


  "_OBJC_CLASS_$_GADBannerView", referenced from:


      objc-class-ref in GADMasterViewController.o


  "_OBJC_CLASS_$_GADInterstitial", referenced from:


      objc-class-ref in GADMasterViewController.o


  "_OBJC_CLASS_$_GADRequest", referenced from:


      objc-class-ref in GADMasterViewController.o


  "_kGADAdSizeSmartBannerLandscape", referenced from:


      -[GADMasterViewController resetAdView:] in GADMasterViewController.o


  "_kGADAdSizeSmartBannerPortrait", referenced from:


      -[GADMasterViewController init] in GADMasterViewController.o


      -[GADMasterViewController resetAdView:] in GADMasterViewController.o


ld: symbol(s) not found for architecture x86_64


clang: error: linker command failed with exit code 1 (use -v to see invocation)

最佳答案

您正在尝试为64位x86体系结构构建项目,因此出现以下消息:“ld:为体系结构x86_64未找到符号”

我不确定您将如何执行此操作,因为您想构建一个iOS项目,即使您为模拟器构建它,该体系结构也将是i386,而不是x86_64。您的构建设置有问题。您能否提供一些有关这些设置的详细信息?

10-08 12:30