1

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

1 回答 1

2

您正在尝试为 64 位 x86 架构构建项目,因此出现消息:“ld: symbol(s) not found for architecture x86_64”

我不确定你到底是怎么做的,因为你想构建一个 iOS 项目,即使你会为模拟器构建它,架构也是 i386,而不是 x86_64。您的构建设置有问题。您能否向我们提供有关这些设置的一些详细信息?

于 2013-11-05T10:49:51.613 回答