Admob ios x64错误

前端之家收集整理的这篇文章主要介绍了Admob ios x64错误前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正试图在iPad Mini Retina上测试Admob Banner.现在我收到这个错误

Undefined symbols for architecture arm64:
“_SCNetworkReachabilityCreateWithAddress”,referenced from:
l002 in libGoogleAdMobAds.a(GADGestureUtil.o) “_AudioServicesPlaySystemSound”,referenced from:
-[GADDefaultGMSGHandler didReceiveVibrateNotification:] in libGoogleAdMobAds.a(GADDefaultGMSGHandler.o)
“_AudioSessionInitialize”,referenced from:
-[GADDevice audioRouteUsingAudioToolkit] in libGoogleAdMobAds.a(GADDevice.o) “_OBJC_CLASS_$_AVAudioSession”,
referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADDevice.o) “_AVAudioSessionPortHeadphones”,referenced from:
-[GADDevice audioRouteUsingAVAudioSession] in libGoogleAdMobAds.a(GADDevice.o) “_AudioSessionGetProperty”,
referenced from:
-[GADDevice audioRouteUsingAudioToolkit] in libGoogleAdMobAds.a(GADDevice.o)
“_OBJC_CLASS_$_MFMailComposeViewController”,referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADOpener.o) “_SCNetworkReachabilityGetFlags”,referenced from:
l002 in libGoogleAdMobAds.a(GADGestureUtil.o) “_SCNetworkReachabilitySetCallback”,referenced from:
-[GADNetworkChecker startNetworkChecking] in libGoogleAdMobAds.a(GADNetworkChecker.o)
“_OBJC_CLASS_$_MFMessageComposeViewController”,referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADOpener.o) “_AVAudioSessionPortBuiltInSpeaker”,referenced from:
-[GADDevice audioRouteUsingAVAudioSession] in libGoogleAdMobAds.a(GADDevice.o)
“_OBJC_CLASS_$_SKStoreProductViewController”,referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADOpener.o) “_SCNetworkReachabilityScheduleWithRunLoop”,referenced from:
-[GADNetworkChecker startNetworkChecking] in libGoogleAdMobAds.a(GADNetworkChecker.o)
“_OBJC_CLASS_$_CTTelephonyNetworkInfo”,referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADDevice.o) “_SCNetworkReachabilityUnscheduleFromRunLoop”,referenced from:
-[GADNetworkChecker stopNetworkChecking] in libGoogleAdMobAds.a(GADNetworkChecker.o)
“_SCNetworkReachabilityCreateWithName”,referenced from:
-[GADNetworkChecker startNetworkChecking] in libGoogleAdMobAds.a(GADNetworkChecker.o)
“_SKStoreProductParameterITunesItemIdentifier”,referenced from:
-[GADOpener openInAppStore:fallbackURLString:] in libGoogleAdMobAds.a(GADOpener.o) ld: symbol(s) not found for
architecture arm64 clang: error: linker command Failed with exit code
1 (use -v to see invocation)

我找到了一个消除一些错误解决方案.它是添加一些框架.清单:

> AudioToolBox.Framework
> MessageUI.Framework
> SystemConfiguration.Framework
> CoreGraphics.Framework
> CoreData.Framework
> AdSupport.Framework
> MediaPlayer.framework

但无论如何我有这个错误

Undefined symbols for architecture arm64:
“_OBJC_CLASS_$_AVAudioSession”,referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADDevice.o) “_AVAudioSessionPortBuiltInSpeaker”,referenced from:
-[GADDevice audioRouteUsingAVAudioSession] in libGoogleAdMobAds.a(GADDevice.o)
“_OBJC_CLASS_$_CTTelephonyNetworkInfo”,referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADDevice.o) “_AVAudioSessionPortHeadphones”,referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADOpener.o) “_SKStoreProductParameterITunesItemIdentifier”,referenced from:
-[GADOpener openInAppStore:fallbackURLString:] in libGoogleAdMobAds.a(GADOpener.o) ld: symbol(s) not found for
architecture arm64 clang: error: linker command Failed with exit code
1 (use -v to see invocation)

如何解决这个问题?

解决方法

只需添加以下框架BuildSettings – >构建阶段 – > Link Binary与库
StoreKit.framework
CoreTelephony.framework
AVFoundation.framework

猜你在找的iOS相关文章