SIMBL插件无法加载框架

时间:2011-08-27 19:08:09

标签: macos dlopen simbl

在控制台上,我收到了这些错误:

27.08.11 20:56:06,371 sandboxd: ([83008]) TextEdit(83008) deny file-read-data /Users/az/Library/Frameworks/FScript.framework/Versions/A/FScript
27.08.11 20:56:06,372 TextEdit: Error loading /Users/az/Library/Containers/com.apple.TextEdit/Data/Library/Application Support/SIMBL/Plugins/FScriptAnywhere.bundle/Contents/MacOS/FScriptAnywhere:  dlopen(/Users/az/Library/Containers/com.apple.TextEdit/Data/Library/Application Support/SIMBL/Plugins/FScriptAnywhere.bundle/Contents/MacOS/FScriptAnywhere, 265): Library not loaded: @executable_path/../Frameworks/FScript.framework/Versions/A/FScript
  Referenced from: /Users/az/Library/Containers/com.apple.TextEdit/Data/Library/Application Support/SIMBL/Plugins/FScriptAnywhere.bundle/Contents/MacOS/FScriptAnywhere
  Reason: no suitable image found.  Did find:
    /Users/az/Library/Frameworks/FScript.framework/Versions/A/FScript: open() failed with errno=1

文件FScriptAnywhere.bundle/Contents/Frameworks/FScript.framework/Versions/A/FScript存在。因此,我不明白错误/问题。

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

发现问题:

@executable_path与应用程序相关,而不是捆绑包,即在本例中为TextEdit。当然它没有在那里找到框架。

由于TextEdit的沙盒,它也无法从~/Library/Frameworks加载框架。

将框架复制到/Library/Frameworks解决了问题。