Undefined symbols for architecture arm64:
"_res_9_ninit", referenced from:
-[UIDevice(HTHelpers) ht_getLocalDNSAddress] in UIDevice+HTHelpers.o
"_res_9_nclose", referenced from:
-[UIDevice(HTHelpers) ht_getLocalDNSAddress] in UIDevice+HTHelpers.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
缺少系統(tǒng)庫所致
解決方案:TARGETS->build Phases->Link Binary With Libraries 添加庫libresolv.tbd