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
存在。因此,我不明白错误/问题。
有什么想法吗?
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
发现问题:
@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.