我使用cocos2d-x遊戲庫製作了一些遊戲,並且我想用AdMob展示橫幅廣告。 使用libGoogleAdMobAds.a版本6.5.0,它工作正常,但該版本不支持arm64體系結構。然後我遷移到版本6.11.1(最新版本),但它會導致一些鏈接器錯誤。iOS中的AdMob libara導致鏈接器錯誤(mach-o)
Undefined symbols for architecture armv7: "_UITransitionContextToViewControllerKey" "_UITransitionContextFromViewControllerKey" "_OBJC_METACLASS_$_UIPercentDrivenInteractiveTransition" "_OBJC_CLASS_$_UIPercentDrivenInteractiveTransition" linker command failed with exit code 1 (use -v to see invocation)
什麼問題?我花了3天,因爲這個錯誤。請幫幫我。
以下是整個錯誤消息。
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 clang: error: linker command failed with exit code 1 (use -v to see invocation)
對不起,我遲到了。 libGoogleAdMobAds.a已添加,並且還添加了所有必需的框架。無論如何,我上傳與版本6.5.0的二進制文件,並等待蘋果的審查。感謝您的回答。 – GaeJem 2014-09-03 14:46:23