Sometimes, automated tools will use otool -L determine if there are invalid libraries linked to gems. Cargo will set the id to something like target/debug/libfoo.dylib, which becomes incorrect when rb-sys moves the file to a .bundle. So, we strip the ID out with install_name_tool.
Sometimes, automated tools will use
otool -L
determine if there are invalid libraries linked to gems. Cargo will set the id to something liketarget/debug/libfoo.dylib
, which becomes incorrect when rb-sys moves the file to a.bundle
. So, we strip the ID out withinstall_name_tool
.