我有一个QLPlugin,它位于我的应用程序包中。它适用于Mountain Lion及更早版本,但现在在Mavericks上,只有缩略图生成器才有效。预览生成器因控制台中的沙盒错误而失败:
8/5/14 7:41:34.000 PM kernel[0]: Sandbox: QuickLookSatelli(98371) deny file-read-data <path to file>
缩略图和预览生成器都会记录此错误,但仍会生成缩略图,而预览则不会。它在Xcode中运行(通过qlmanage
),记录一些与半相关的错误:
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插件没有权利文件,所以我该怎么办?