_res_9_getservers",referenced from: "_res_9_ndestroy",referenced from: "_res_9_ninit",reference...

ld: warning: directory not found for option '-F/Users/imac/ios/test/test/w’

Undefined symbols for architecture x86_64:

  "_res_9_getservers",referenced from:

      -[OSSIPv6Adapter getDNSServersIpStack]in AliyunOSSiOS(OSSIPv6Adapter.o)

  "_res_9_ninit",referenced from:

      -[OSSIPv6Adapter getDNSServersIpStack]in AliyunOSSiOS(OSSIPv6Adapter.o)

  "_res_9_ndestroy",referenced from:

      -[OSSIPv6Adapter getDNSServersIpStack]in AliyunOSSiOS(OSSIPv6Adapter.o)

ld: symbol(s)not found for architecture x86_64

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


解决方法:TARGETS->build Phases->Link Binary With Libraries  添加库libresolv

你可能感兴趣的:(_res_9_getservers",referenced from: "_res_9_ndestroy",referenced from: "_res_9_ninit",reference...)