I currently have a binary file which links against another dynamic library (ie. liba.dylib) which links against another library (ie. libb.dylib). This is all set up in my XCode project and liba.dylib (which has a linker flag set -lb to link against libb.dylib) and libb.dylib will build just fine on their own. But when I try to build the binary which links against liba.dylib, it will complain that
"warning can't open dynamic library: libb.dylib referenced from: /path/to/liba.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)"
Why is it that even if I specified for liba.dylib to link against libb.dylib, it can't find libb.dylib when I build the binary? What kind of flags do I need to set and where to get this chain of links working? Thanks.
Start Free Trial