SIMBL 插件无法加载框架

发布于 2024-12-01 17:49:09 字数 1088 浏览 1 评论 0原文

在控制台上,我收到以下错误:

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 存在。因此,我不明白错误/问题。

有什么想法吗?

On console, I am getting these errors:

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

The file FScriptAnywhere.bundle/Contents/Frameworks/FScript.framework/Versions/A/FScript exists. Thus, I don't understand the error / the problem.

Any idea?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

纵性 2024-12-08 17:49:09

发现问题:

@executable_path 是相对于应用程序的,而不是捆绑包,即本例中的 TextEdit。当然,它在那里找不到框架。

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

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

Found the problem:

@executable_path is relative to the app, not the bundle, i.e. in this case TextEdit. Of course it doesn't find the framework there.

It also cannot load the framework from ~/Library/Frameworks because of the sandboxing of TextEdit.

Copying the framework over to /Library/Frameworks solved the problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文