我正在尝试将 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/