android-file-transfer-linux icon indicating copy to clipboard operation
android-file-transfer-linux copied to clipboard

macOS: CLI does not run (libmagic.1.dylib not found)

Open steef435 opened this issue 5 months ago • 0 comments

Installing via homebrew (on M4 processor) and running aft-mtp-cli gives:

dyld[11743]: Library not loaded: /usr/local/opt/libmagic/lib/libmagic.1.dylib
  Referenced from: <3400037E-B2B4-3A04-B3A5-ABECB9090AEB> /Applications/Android File Transfer for Linux.app/Contents/SharedSupport/bin/aft-mtp-cli
  Reason: tried: '/usr/local/opt/libmagic/lib/libmagic.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/libmagic/lib/libmagic.1.dylib' (no such file), '/usr/local/opt/libmagic/lib/libmagic.1.dylib' (no such file)
zsh: abort      aft-mtp-cli

When compiled from scratch it does work.

Apologies if this is actually a homebrew issue, I'm not familiar enough to tell. Just installing libmagic via Homebrew or setting it as a dependency does not work, because this installs the ARM version.

Thank you for sharing this software!

steef435 avatar Jun 18 '25 00:06 steef435