我找到原因了,因为只集成了JCore,没有集成 它的基础库,也就是JG-JPush。
我碰到的关键报错信息:
Undefined symbols for architecture arm64:
\"_dns_free_resource_record\", referenced from:
-[JCORESRVResolver processRecord:length:] in UniPluginJCore(JCORESRVResolver.o)
\"_dns_parse_resource_record\", referenced from:
-[JCORESRVResolver processRecord:length:] in UniPluginJCore(JCORESRVResolver.o)
\"_res_9_init\", referenced from:
+[JCOREMacAddressManager getDeviceMacFromMDNS:] in UniPluginJCore(JCOREMacAddressManager.o)
\"_res_9_ns_initparse\", referenced from:
+[JCOREMacAddressManager getDeviceMacFromMDNS:] in UniPluginJCore(JCOREMacAddressManager.o)
\"_res_9_ns_parserr\", referenced from:
+[JCOREMacAddressManager getDeviceMacFromMDNS:] in UniPluginJCore(JCOREMacAddressManager.o)
\"_res_9_query\", referenced from:
+[JCOREMacAddressManager getDeviceMacFromMDNS:] in UniPluginJCore(JCOREMacAddressManager.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
1 个回复
j***@163.com (作者)
我找到原因了,因为只集成了JCore,没有集成 它的基础库,也就是JG-JPush。
我碰到的关键报错信息:
Undefined symbols for architecture arm64:
\"_dns_free_resource_record\", referenced from:
-[JCORESRVResolver processRecord:length:] in UniPluginJCore(JCORESRVResolver.o)
\"_dns_parse_resource_record\", referenced from:
-[JCORESRVResolver processRecord:length:] in UniPluginJCore(JCORESRVResolver.o)
\"_res_9_init\", referenced from:
+[JCOREMacAddressManager getDeviceMacFromMDNS:] in UniPluginJCore(JCOREMacAddressManager.o)
\"_res_9_ns_initparse\", referenced from:
+[JCOREMacAddressManager getDeviceMacFromMDNS:] in UniPluginJCore(JCOREMacAddressManager.o)
\"_res_9_ns_parserr\", referenced from:
+[JCOREMacAddressManager getDeviceMacFromMDNS:] in UniPluginJCore(JCOREMacAddressManager.o)
\"_res_9_query\", referenced from:
+[JCOREMacAddressManager getDeviceMacFromMDNS:] in UniPluginJCore(JCOREMacAddressManager.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)