在控制台上,我收到以下错误:
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存在。因此,我不理解错误/问题。
有什么想法吗?
发布于 2011-08-28 03:25:44
找到问题了:
@executable_path是相对于应用程序的,而不是与捆绑包相关的,即本例中的TextEdit。当然,它在那里找不到框架。
由于TextEdit的沙箱,它也不能从~/Library/Frameworks加载框架。
将框架复制到/Library/Frameworks解决了这个问题。
https://stackoverflow.com/questions/7216706
复制相似问题