How can I easily redistribute dylib in MacOS?

167 Views Asked by At

I would like to distribute my application. However, it is full of dylibs all from different locations. I would like to just copy them to the Resources/lib directory and set my LD_LIBRARY_PATH to point to it with a startup shell script, just like I do in Linux after I clear the rpath with chrpath. Currently, I am struggling with otool / install_name_tool and I don't seem to be able to change the 'name' property of the dylib.

0

There are 0 best solutions below