无法在MacOS上的沙箱中使用metaflac

时间:2017-11-29 19:44:52

标签: macos sandbox dylib appstore-sandbox dyld

我正在尝试使用沙盒应用程序中的metaflac,我将它放入Application Scripts目录以允许执行,但它无法在沙箱外加载动态Flac库:

dyld: Library not loaded: /usr/local/Cellar/flac/1.3.2/lib/libFLAC.8.dylib
  Referenced from: /Users/me/Library/Application Scripts/com.map-pin.app/metaflac
  Reason: no suitable image found.  Did find:
    file system sandbox blocked open() of '/usr/local/Cellar/flac/1.3.2/lib/libFLAC.8.dylib'
    file system sandbox blocked open() of '/usr/local/lib/libFLAC.8.dylib'
    file system sandbox blocked open() of '/usr/local/Cellar/flac/1.3.2/lib/libFLAC.8.dylib'

此版本的metaflac来自home-brew安装。

如何修复此问题或获取链接库的metaflac二进制文件?

0 个答案:

没有答案