|
ImportantNoteForXcodeUsers
Important information on using QLColorCode with Xcode v3.2 and later
Featured Important information on using QLColorCode with Xcode v3.2 and laterXcode 3.2 (the version shipped with Snow Leopard) includes a Quick Look plugin that highlights source code. It only highlights a few languages, so you probably still want to use QLColorCode. However, the Quick Look server tends to pick the Xcode plugin over QLCC. This means that for any source code file aside from .c, .m, and the other languages that Xcode understands you'll see a plain text preview with no highlighting. To get QLCC to work properly you'll need to disable the Xcode plugin. SymptomsIf you're having this problem you'll notice that:
open Foo open Bar ScriptsI have created two Applescripts to easily disable and restore the Xcode plugin with a simple double-click. They can be found in the Downloads section, named QLColorCodeScripts. If you want to know how to do it by hand, read on. DetailsThe Xcode plugin is installed at: /Developer/Applications/Xcode.app/Contents/Library/QuickLook/SourceCode.qlgenerator The simplest way to disable it is to open Terminal.app and run these commands: f=/Developer/Applications/Xcode.app/Contents/Library/QuickLook/SourceCode.qlgenerator sudo mv $f.disabled /tmp/ # Move aside any previously disabled version sudo mv $f $f.disabled This will rename the plugin to SourceCode.qlgenerator.disabled, which will prevent it from being loaded by quicklookd. You will need to repeat this if you upgrade or reinstall Xcode. A Note on Code SigningThe Xcode application is cryptographically signed. Disabling the SourceCode.qlgenerator plugin is safe: it will NOT invalidate the signature. You can confirm this by using the codesign command after disabling the plugin: [n8gray@golux]% codesign -vv /Developer/Applications/Xcode.app /Developer/Applications/Xcode.app: valid on disk /Developer/Applications/Xcode.app: satisfies its Designated Requirement |
Hi, do you know how I stop these errors showing up in console:
20/10/2009 16:36:23 quicklookd8636? QL? Can't get plugin bundle info at /Developer/Applications/Xcode.app/Contents/Library/QuickLook?/SourceCode?.qlgenerator/
I followed the instructions here but obviously the QL daemon is still looking for the XCode plugin...
No, I don't know how to stop those messages, but they appear to be harmless.
For the record the following eliminates the error.
Where's the SourceCode?.qlgenerator from Xcode 4.x?
Awesome reeves!!! That fixed the error. What does that command do?
Thanks!