美文网首页
iOS 阿里百川SDK 报错 "_OBJC_CLASS

iOS 阿里百川SDK 报错 "_OBJC_CLASS

作者: 大冲哥 | 来源:发表于2017-12-15 14:10 被阅读12次

    引入阿里百川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

          本文链接:https://www.haomeiwen.com/subject/kzfdwxtx.html