美文网首页iOS技术收藏
_res_9_getservers",referenc

_res_9_getservers",referenc

作者: suummer_小晨 | 来源:发表于2018-05-17 11:48 被阅读113次

    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",referenc

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