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

Posted HeathHsia

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了iOS 阿里百川SDK 报错 "_OBJC_CLASS_$_CMMotionManager", referenced from: objc-class-"_res_9_g相关的知识,希望对你有一定的参考价值。

引入阿里百川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 报错 "_OBJC_CLASS_$_CMMotionManager", referenced from: objc-class-"_res_9_g的主要内容,如果未能解决你的问题,请参考以下文章

iOS支付宝AlipaySDK与阿里百川反馈YWFeedbackFMWK冲突

阿里百川授权

用户说 | 阿里百川HotFix解决方案使用体验

阿里百川IIMSDK-- 加好友,获取好友

解决阿里云OSS依赖报错

Weex SDK集成指南