iOS技术收藏

_res_9_getservers",referenc

2018-05-17  本文已影响113人  suummer_小晨

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

上一篇下一篇

猜你喜欢

热点阅读