在我们添加开放平台时可能会报错误信息
Undefined symbols for architecture x86_64:
“_res_9_getservers”, referenced from:
+[TXRtmpApi getDNSServers] in TXRTMPSDK(TXRTMPAPI.o)
“_res_9_ninit”, referenced from:
+[TXRtmpApi getDNSServers] in TXRTMPSDK(TXRTMPAPI.o)
“_res_9_ndestroy”, referenced from:
+[TXRtmpApi getDNSServers] in TXRTMPSDK(TXRTMPAPI.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
如图所示
添加依赖库libresolv.tbd即可