I’m trying to put together a little addon that on OSX uses a dylib.
Even though the dylib is in the addon’s libs folder and addon_config.mk uses a relative path to the dylib file,
then the executable gets linked, it still has the /usr/local/lib prefix.
I’ve also tried copying the libfmodex.dylib
install_name_tool Build Phases Run Script sections and adapted them. The dylib I want to link using a relative path gets copied over and install_name_tool changes the hardcoded /usr/local/lib path, but this feels hacky and needs to be once per project using the addon which isn’t ideal.
How can I get Xcode to link to the dylib using a relative path ?