极光推送添加必要库 报错JPUSHSRVResolver processRecord:length:

p.p1 {margin: 0.0px 0.0px 0.0px 12.0px; text-indent: -12.0px; font: 11.0px Menlo}

Undefined symbols for architecture x86_64:
  "_dns_free_resource_record", referenced from:
      -[JPUSHSRVResolver processRecord:length:] in jcore-ios-1.0.0.a(JPUSHSRVResolver.o)
  "_dns_parse_resource_record", referenced from:
      -[JPUSHSRVResolver processRecord:length:] in jcore-ios-1.0.0.a(JPUSHSRVResolver.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,搞定

你可能感兴趣的:(极光推送添加必要库 报错JPUSHSRVResolver processRecord:length:)