macos下的otool(Linux上的ldd)

otool - object file displaying tool

otool [ option ...  ] [ file ...  ]

       -L     Display the names and version numbers of  the  shared  libraries
              that  the object file uses.  As well as the shared library ID if
              the file is a shared library.

某个运行程序或者运行库的依赖库可以使用otool -L XXX指令来查看;

可以使用install_name_tool -change old_path new_path XXX,来修改XXX依赖的库的路径

posted @ 2020-02-17 15:38  sane_gao  阅读(407)  评论(0编辑  收藏  举报