编译遇到:"_res_9_getservers", referenced from:

Undefined symbols for architecture arm64:
"_res_9_getservers", referenced from:
-[TXCStreamUploader getDNSServers] in TXLiteAVSDK_Professional(TXCStreamUploader.o)
tx_getdnssvraddrs(std::__1::vector >&) in TXLiteAVSDK_Professional(getdnssvraddrs.o)
"_res_9_ninit", referenced from:
-[TXCStreamUploader getDNSServers] in TXLiteAVSDK_Professional(TXCStreamUploader.o)
tx_getdnssvraddrs(std::__1::vector >&) in TXLiteAVSDK_Professional(getdnssvraddrs.o)
"_res_9_ndestroy", referenced from:
-[TXCStreamUploader getDNSServers] in TXLiteAVSDK_Professional(TXCStreamUploader.o)
tx_getdnssvraddrs(std::__1::vector >&) in TXLiteAVSDK_Professional(getdnssvraddrs.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

缺少:libresolv.9.tbd库导致

你可能感兴趣的:(编译遇到:"_res_9_getservers", referenced from:)