ios - libGoogleAdMobAds 9.6.3 armv7 构建错误

标签 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 已经在我项目的build设置中的有效架构中。

我也尝试使用他们的示例横幅示例应用程序,但构建仅在模拟器上成功。为设备构建时出现构建错误(我使用的是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

最佳答案

在构建阶段添加-ObjC -> Other linker flag

关于ios - libGoogleAdMobAds 9.6.3 armv7 构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24754380/

相关文章:

ios - 无法识别的选择器发送到实例 0x7f9ccc8886a0

android - MoSync 体验

ios - 添加 AdMob Interstitial 广告以及横幅广告 (IOS)

flutter - 如何在flutter中使用谷歌移动广告中的关键字

ios - 我的应用程序 (iOS) 如何从 Google map 的共享按钮打开位置?

ios - View之间传输时变量值没有改变

ios - 当用户在 UIButton 上滑动时,UIScrollView 停止工作

经过身份验证后,HTML5 视频无法在移动浏览器上运行

android - 无方法错误 : undefined method `switch_to'

android - 尝试在 Android Studio 中设置 admob