I am trying to debug a quicklook plugin in Xcode 4.6. I have created the executable in Edit Scheme.
Now, when I build the project the plugin is not installed to the "/Library/Quicklook" path. Rather I didn't find it anywhere.
I want to run the plugin in debug mode and want to hit the breakpoints so that I can figure out where the plugin crashes on different files.
You can use brake points and NSLog
function for debugging QL plugin. But first you need to configure environment.
~/Library/QuickLook
as subpathqlmanage
to your project's root directory with command cp /usr/bin/qlmanage PROJECT_ROOT_DIR
qlmanage
binary you have copied to project's root directory-p FULL_PATH_TO_FILE_FOR_PREVIEW
After all steps you can run your project and debug your code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With