我想在脚本中更改dylib搜索路径。在终端中,我使用了otool -L my.dylib,然后查看搜索路径是什么,并使用install_name_tool更改搜索路径。install_name_tool (-change)使用以前的路径和新的路径作为参数。如何才能将otool -L的结果转换为脚本变量?
发布于 2018-02-27 14:25:00
如何才能将otool -L的结果转换为脚本变量?
从脚本中运行otool:
OUTPUT=$(otool -L /Applications/Calculator.app/Contents/MacOS/Calculator)
echo $OUTPUThttps://stackoverflow.com/questions/48993194
复制相似问题