将 ifuse 构建为 MacOS 的独立可执行文件

Mik*_*mus 2 macos makefile build libimobiledevice

我使用 Brew 为 MacOS 构建了一个可执行文件,但是当我运行它时,它会尝试访问 Homebrew 包/路径。

Library not loaded: /Applications/MyApp.app/Contents/Resources/homebrew/opt/libimobiledevice/lib/libimobiledevice-1.0.6.dylib
Run Code Online (Sandbox Code Playgroud)

有没有办法将 ifuse 构建为独立的可执行文件以在 MacOS 上运行?

请参阅此处的安装步骤ifuse: https: //github.com/libimobiledevice/ifuse#installation--getting-started

这是酿造公式:

Library not loaded: /Applications/MyApp.app/Contents/Resources/homebrew/opt/libimobiledevice/lib/libimobiledevice-1.0.6.dylib
Run Code Online (Sandbox Code Playgroud)

eva*_*vie 6

您现在可以ifuse使用 Homebrew 安装,无需编译它,使用此水龙头: https: //github.com/gromgit/homebrew-fuse

brew install gromgit/fuse/ifuse-mac
Run Code Online (Sandbox Code Playgroud)

在执行此操作之前,请确保您已删除osxfuse并安装macfuseosxfuse从 v4.0.0 开始成功):

brew uninstall osxfuse && \
brew install --cask macfuse
Run Code Online (Sandbox Code Playgroud)