我正在尝试将Google Mobile Ads SDK版本9.6.3集成到我的iOS应用程序中,但在SDK使用的iOS 7API上遇到了armv7构建错误。我的应用需要支持iOS 6和更高版本,所以我的部署目标是6.0。发行说明中说SDK支持iOS 5和更高版本,所以我希望它能正常工作。
在我的项目的构建设置中,Armv7和armv7s已经在有效的体系结构中。
我也尝试了他们的样本横幅样本应用程序,但只有模拟器的构建成功。为设备构建时出现构建错误(我使用的是ios 6设备)
以下是示例banner应用程序的日志:
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发布于 2014-07-15 17:51:08
在构建阶段添加-ObjC -> Other链接器标志
https://stackoverflow.com/questions/24754380
复制相似问题