dylibbundler

Bundle dynamic libraries into macOS application executables

brewmacoslinux
Try with needOr install directly
Source

About

Utility to bundle libraries into executables for macOS

Commands

dylibbundler

Examples

Bundle all dependencies for an executable into app bundle$ dylibbundler -od -b -x ./MyApp.app/Contents/MacOS/myapp -d ./MyApp.app/Contents/Frameworks/
Create bundle and fix install names for a single binary$ dylibbundler -b -x /path/to/binary -d ./libs/
Bundle libraries with nested dependencies recursively$ dylibbundler -od -b -x ./executable -d ./Frameworks/ -p @executable_path/../Frameworks/