When you finish building the external library, you will need to modify its install name (using
install_name_tool -id ...
) to @rpath/libtest-xx.dylib
. The app executable should have the frameworks folder in its runpath, so will know where to load the library from.