引入阿里百川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
网友评论