libGoogleAdMobAds 9.6.3 armv7构建错误

时间:2014-07-15 09:20:08

标签: ios mobile admob ads armv7

我尝试将Google移动广告SDK版本9.6.3集成到我的iOS应用中,但我在SDK使用的iOS 7 API上遇到了armv7构建错误。我的应用程序需要支持iOS 6及更高版本,因此我的部署目标是6.0。发行说明说SDK支持iOS 5及更高版本,因此我希望它能够正常运行。

Armv7和armv7s已经在我项目的构建设置中的有效架构中。

我也尝试过他们的示例横幅示例应用,但构建只对模拟器成功。构建设备时出现构建错误(我使用的是ios 6设备)

以下是示例横幅广告的日志:

Undefined symbols for architecture armv7:
  "_UITransitionContextToViewControllerKey", referenced from:
      -[GADViewControllerFullScreenSwipeAnimation animateTransition:] in libGoogleAdMobAds.a(GADViewControllerFullScreenSwipeAnimation.o)
      -[GADViewControllerFullScreenSwipeAnimation animationContextForTopToBottomAnimationPresentationWithTransitionContext:] in libGoogleAdMobAds.a(GADViewControllerFullScreenSwipeAnimation.o)
      -[GADViewControllerFullScreenSwipeAnimation animationContextForBottomToTopAnimationPresentationWithTransitionContext:] in libGoogleAdMobAds.a(GADViewControllerFullScreenSwipeAnimation.o)
  "_UITransitionContextFromViewControllerKey", referenced from:
      -[GADViewControllerFullScreenSwipeAnimation animateTransition:] in libGoogleAdMobAds.a(GADViewControllerFullScreenSwipeAnimation.o)
      -[GADViewControllerFullScreenSwipeAnimation animationContextForRestoringAnimationToSavedState:] in libGoogleAdMobAds.a(GADViewControllerFullScreenSwipeAnimation.o)
  "_OBJC_METACLASS_$_UIPercentDrivenInteractiveTransition", referenced from:
      _OBJC_METACLASS_$_GADPercentDrivenUserInteractionAnimationController in libGoogleAdMobAds.a(GADPercentDrivenUserInteractionAnimationController.o)
  "_OBJC_CLASS_$_UIPercentDrivenInteractiveTransition", referenced from:
      _OBJC_CLASS_$_GADPercentDrivenUserInteractionAnimationController in libGoogleAdMobAds.a(GADPercentDrivenUserInteractionAnimationController.o)
ld: symbol(s) not found for architecture armv7

1 个答案:

答案 0 :(得分:1)

在构建阶段添加 -ObjC - >其他链接器标志