Re: How to debug and test a quick look generator?
Re: How to debug and test a quick look generator?
- Subject: Re: How to debug and test a quick look generator?
- From: John Brownie <email@hidden>
- Date: Wed, 11 Mar 2015 17:34:38 +1000
On Wed Mar 11 2015 17:04:13 GMT+1000 (PGT) Steve Mills wrote:
Product->Scheme->Edit Scheme for your QL generator target. In that window, set the executable in the Info tab to qlmanage and set any arguments in the Arguments tab, e.g.:
-p -c com.theutiforyourquicklookgenerator.whatever -g ${TARGET_BUILD_DIR}/Your.qlgenerator '${SRCROOT}/../path/to/some/test.file'
Which will test the preview for the file. See 'man qlmanage' for more info.
Thank you, that gets me to the next step. Unfortunately, I don't get
much further, getting these errors:
2015-03-11 17:31:43.436 qlmanage[36975:3297242] Cannot find function
pointer QuickLookGeneratorPluginFactory for factory
5CCEA6DE-84B7-47FC-A694-E8EA6449EB85 in CFBundle/CFPlugIn 0x7f8eb8553ac0
</Users/john/Library/Developer/Xcode/DerivedData/xxx/Build/Products/Debug/xxx.qlgenerator>
(bundle, loaded)
Got xpc error message: Connection invalid
2015-03-11 17:31:43.551 qlmanage[36975:3297162] *** CFMessagePort:
bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port =
0x9017, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2015-03-11 17:31:43.554 qlmanage[36975:3297162] *** CFMessagePort:
bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port =
0x9113, name = 'com.apple.CFPasteboardClient'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2015-03-11 17:31:43.554 qlmanage[36975:3297162] Failed to allocate
communication port for com.apple.CFPasteboardClient; this is likely due
to sandbox restrictions
2015-03-11 17:31:43.565 qlmanage[36975:3297162] *** CFMessagePort:
bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port =
0x8a47, name = 'com.apple.coredrag'
See /usr/include/servers/bootstrap_defs.h for the error codes.
I don't know what has permission problems, nor what to do about it. It
never gets to my code, presumably because something fails earlier. I've
never worked on a plugin (apart from a PDE back in the Carbon days), so
I'm at sea here.
John
--
John Brownie, email@hidden or email@hidden
Summer Institute of Linguistics | Mussau-Emira language, Mussau Is.
Ukarumpa, Eastern Highlands Province | New Ireland Province
Papua New Guinea | Papua New Guinea
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden