QuickLook Plugin Failing with sandboxing error

廉价感情. 提交于 2019-12-20 01:58:23

问题


I have a QLPlugin that resides in my app's bundle. It worked on Mountain Lion and earlier, but now on Mavericks, only the thumbnail generator works. The preview generator fails with a sandboxing error in Console:

8/5/14 7:41:34.000 PM kernel[0]: Sandbox: QuickLookSatelli(98371) deny file-read-data <path to file>

Both the thumbnail and preview generators log this error, but a thumbnail still gets generated, whereas a preview does not. It runs (via qlmanage) in Xcode, logging some semi-related errors:

2014-08-05 19:39

:33.008 qlmanage[98314:303] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x912b, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2014-08-05 19:39:33.012 qlmanage[98314:303] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x3f27, name = 'com.apple.CFPasteboardClient'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2014-08-05 19:39:33.013 qlmanage[98314:303] Failed to allocate communication port for com.apple.CFPasteboardClient; this is likely due to sandbox restrictions

QuickLook plugins can't have an entitlements file, so what can I do?

来源:https://stackoverflow.com/questions/25150120/quicklook-plugin-failing-with-sandboxing-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!