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)
如何解决这个问题?
解决方法
StoreKit.framework CoreTelephony.framework AVFoundation.framework