frida / frida-swift

Frida Swift bindings
Other
139 stars 37 forks source link

Undefined symbols when building for iOS #4

Closed movses-margaryan-zz closed 4 years ago

movses-margaryan-zz commented 4 years ago

Built for ios make core-ios-thin Then generated devkit ./releng/devkit.py -t frida-core ios-arm64 ./frida-swift/CFrida-ios/ios-arm64/ Added an iOS target and linked with iOS lib Had to remove the APIs which used NSImage

Ran into issues with linked now:

Undefined symbols for architecture arm64:
  "_res_9_dn_expand", referenced from:
      _do_lookup_records in libfrida-core.a(gthreadedresolver.c.o)
  "_res_9_ninit", referenced from:
      _do_lookup_records in libfrida-core.a(gthreadedresolver.c.o)
  "_res_9_nquery", referenced from:
      _do_lookup_records in libfrida-core.a(gthreadedresolver.c.o)
  "_res_9_ndestroy", referenced from:
      _do_lookup_records in libfrida-core.a(gthreadedresolver.c.o)
  "_res_9_init", referenced from:
      _g_resolver_maybe_reload in libfrida-core.a(gresolver.c.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Am I missing something?

movses-margaryan-zz commented 4 years ago

Was missing lresolv linker flag