生成安裝包
macdeployqt Test.app -dmg // 打包release版的app
查看依賴的動態庫及其路徑
otool -L Test.app/Contents/MacOS/Test
修改依賴的動態庫的路徑
install_name_tool -change "libtest.dylib" "@rpath/mylib/libtest.dylib" Test.app/Contents/MacOS/Test // 記得在Contents/Frameworks目錄中創建一個mylib目錄