当我用Xcode编译cocos2d-x V3项目时,它运行得很好,但是在包含AdMob框架时,它会显示以下链接器错误。
我已经在“构建设置”下的“其他链接器”部分中包含了"-ObjC“。
未定义的架构符号armv7:"_kCMTimeZero",引用于:-GADVideoPlayer setAudioMixVolume: in GoogleMobileAds(GADVideoPlayer.o) "_CMTimeMakeWithSeconds",引用于:-GADVideoPlayer seekToTime: in GoogleMobileAds(GADVideoPlayer.o) "_CMTimeGetSeconds",引用于:-GADVideoPlayer notifyVideoPlayerWithTime: in GoogleMobileAds(GADVideoPlayer.o) -GADVideoPlayer notifyVideoReadyToPlay in GoogleMobileAds(GADVideoPlayer.o) "_CMTimeMake",引用来源:-GADVideoPlayer observePlayer in GoogleMobileAds(GADVideoPlayer.o) "_OBJC_CLASS_$_EKEventEditViewController",引用于: objc-class-ref in GoogleMobileAds(GADOpener.o) "_OBJC_CLASS_$_MFMailComposeViewController",引用于: objc-class-ref in GoogleMobileAds(GADOpener.o) "_SCNetworkReachabilityCreateWithAddress",引用自: l001 in GoogleMobileAds(GADGestureUtil.o)引用来源: objc-class-ref in GoogleMobileAds(GADDevice.o) objc-class-ref in GoogleMobileAds(GADOpener.o) "_SCNetworkReachabilitySetCallback",引用于:__35-GADNetwork enableNetworkChecking_block_invoke in GoogleMobileAds(GADNetwork.o) "_SCNetworkReachabilityGetFlags",引用自: l001 in GoogleMobileAds(GADGestureUtil.o) "_OBJC_CLASS_$_EKEventStore",引用来源: objc-class-ref in GoogleMobileAds(GADSlot+MRAID.o) objc-class-ref in GoogleMobileAds(GADOpener.o) "_SCNetworkReachabilitySetDispatchQueue",引用于:__35-GADNetwork enableNetworkChecking_block_invoke in GoogleMobileAds(GADNetwork.o) __36-GADNetwork disableNetworkChecking_block_invoke in GoogleMobileAds(GADNetwork.o) "_OBJC_CLASS_$_EKEvent",引用来源: objc-class-ref in GoogleMobileAds(GADOpener.o) "_OBJC_CLASS_$_ASIdentifierManager",引用于: objc-class-ref in GoogleMobileAds(GADDevice.o) objc-class-ref in GoogleMobileAds(GADGestureIdUtil.o) objc-class-ref in GoogleMobileAds(GADMAdURLAdapter.o) "_SCNetworkReachabilityCreateWithName",引用于:__35-GADNetwork enableNetworkChecking_block_invoke in GoogleMobileAds(GADNetwork.o) "_OBJC_CLASS_$_CTTelephonyNetworkInfo",引用于: objc-class-ref in GoogleMobileAds(GADDevice.o)引用的GoogleMobileAds:__48-GADDevice enableNetworkChecking_block_invoke in GoogleMobileAds(GADDevice.o):GoogleMobileAds中找不到符号armv7 clang: GoogleMobileAds中的链接器命令失败,退出代码1(使用-v查看调用)
发布于 2015-11-25 22:52:16
啊!最后,通过在我的项目中添加以下框架,在Xcode中的链接二进制与库节中构建阶段中解决了这个问题。
https://stackoverflow.com/questions/33802888
复制