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

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

"_OBJC_CLASS_$_CMMotionManager", referenced from:
objc-class-ref in SGMain(SGMain99999999.o)     
"_res_9_getservers", referenced from:
      +[WXReachability isIPv6Only] in WXOpenIMSDKFMWK(Reachability.o)
      isIPv6Only() in WXOpenIMSDKFMWK(IOSINetImpl.o)
  "_res_9_ndestroy", referenced from:
      +[WXReachability isIPv6Only] in WXOpenIMSDKFMWK(Reachability.o)
      isIPv6Only() in WXOpenIMSDKFMWK(IOSINetImpl.o)
  "_res_9_ninit", referenced from:
      +[WXReachability isIPv6Only] in WXOpenIMSDKFMWK(Reachability.o)
      isIPv6Only() in WXOpenIMSDKFMWK(IOSINetImpl.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

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

解决方法:

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

1. CoreMotion.framework
2. libresolv.tbd
3. AudioToolbox.framework
4. AVFoundation.framework

iOS 阿里百川SDK 报错

你可能感兴趣的:(iOS,IM开发,iOS崩溃记录,iOS开发进阶)