A MacOS/iOS app dev tool that collects *.dylib
deps(recursively) and pack them into installer.
Use it for caution.
Given a xcode MacOS app build artifact MyDemoApp.app
. It may relies on some .dylib
s which some of themself may also relies on another set of .dylib
s.
Say we want to collect all the .dylib
s transcendently into the result MyDemoApp.app
, eg. /tmp/MyDemoApp.app/Contents/libs
. The following command will help us do it:
dylib-pack /tmp/MyDemoApp.app/Contents/MacOS/MyDemoApp \
/tmp/MyDemoApp.app/Contents/libs \
@executable_path/../libs/
since dylib-pack is written using rust, you can build it with following command and find it in ~/.cargo/bin
directory.
cargo build --release