I know how to use nm to display the undefined symbols in a binary. I also know how to use otool to display which libraries the binary is linked to.
But I don't know how to display for each undefined symbol, which library the linker is expected to find them ?
Note: I am assuming that such information is stored in the mach-o binary, since I have seen before runtime error where dyld would tell you about a missing symbol and pointing out exactly which library it expected to find the symbol in.
Are you just missing the use of the -m
flag to nm
?