天天看点

集成阿里百川时遇到的问题

Undefined symbols for architecture arm64:

  "_OBJC_CLASS_$_CMMotionManager", referenced from:

      objc-class-ref in SGMain(SGMain99999999.o)

  "_res_9_ninit", referenced from:

      +[WXReachability isIPv6Only] in WXOpenIMSDKFMWK(Reachability.o)

      isIPv6Only() in WXOpenIMSDKFMWK(IOSINetImpl.o)

  "_res_9_getservers", referenced from:

      +[WXReachability isIPv6Only] in WXOpenIMSDKFMWK(Reachability.o)

      isIPv6Only() in WXOpenIMSDKFMWK(IOSINetImpl.o)

ld: symbol(s) not found for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

解决办法:1.添加coremotion库 2.添加libresolv.tbd库

集成阿里百川时遇到的问题