关于 xcode 工程编译报错 undefined symbol _res_9_init的解决办法

将libresolv.dylib 添加到工程引用中(通过build phases中)。
补充:
    _res_9_init定义在resolv.h中,可以参考http://www.opensource.apple.com/source/libresolv/libresolv-25/resolv.h

原文地址:https://www.cnblogs.com/leipei2352/p/3266722.html