iOS 阿里百川SDK 报错 "_OBJC_CLASS_$_CMMotionManager", referenced from: objc-class-"_res_9_getservers", ref

引入阿里百川SDK 运行时会报错

"_OBJC_CLASS_$_CMMotionManager", referencedfrom:objc-class-refinSGMain(SGMain99999999.o)"_res_9_getservers", referencedfrom:      +[WXReachability isIPv6Only]inWXOpenIMSDKFMWK(Reachability.o)      isIPv6Only()inWXOpenIMSDKFMWK(IOSINetImpl.o)"_res_9_ndestroy", referencedfrom:      +[WXReachability isIPv6Only]inWXOpenIMSDKFMWK(Reachability.o)      isIPv6Only()inWXOpenIMSDKFMWK(IOSINetImpl.o)"_res_9_ninit", referencedfrom:      +[WXReachability isIPv6Only]inWXOpenIMSDKFMWK(Reachability.o)      isIPv6Only()inWXOpenIMSDKFMWK(IOSINetImpl.o)ld: symbol(s)notfoundforarchitecture x86_64clang:error: linker command failedwithexitcode1(use -vtosee invocation)

这种错误一般是缺少系统依赖库而出现的

解决方法:

找到Build Phases —–> Link Binary With Libraries 添加以下系统库

1. CoreMotion.framework

2. libresolv.tbd

3. AudioToolbox.framework

4. AVFoundation.framework

你可能感兴趣的:(iOS 阿里百川SDK 报错 "_OBJC_CLASS_$_CMMotionManager", referenced from: objc-class-"_res_9_getservers", ref)