"_dns_free_resource_record", referenced from: -[xxxx processRecord:length:] in xxx.a(xxx.o)
这样的错误,是由于缺少库:
添加libresolv.dylib库,就可以了