Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging Quick Look plugins



On Jan 23, 2008, at 12:45:11, Chris Espinosa wrote:

This is a general Xcode FAQ. The Installation Directory is only used in two circumstances:

Where does one look for these answers?

1) when you do an 'xcodebuild install' from the command line
2) if you specifically and intentionally check 'Deployment Postprocessing' in the build configuration you use for Release


The reason the former is preferred over the latter (and neither is default or automatic) is that installation often involves using escalated privileges to set ownership and permissions on the installed product, or to install it in places that require escalated privileges. We don't have a mechanism in the IDE to let Xcode do the whole build as your user but just the installation as a superuser, and if we don't do that, the first build-and-install would work but the second one would fail because your user can't overwrite a file originally written by a superuser.

Hopefully someday Xcode will get this power, as building and debugging wholly from within Xcode is something it really should be able to do.


The solution is to either set Deployment Postprocessing (and make sure permissions are set correctly) so you can repeatedly do Build Release from the Xcode IDE, or to go to the command line to debug, or to put a symlink in /Library/Quicklook to your Build Products folder where your regular debuggable executable is going to land after every rebuild. I prefer the latter solution myself, and use it frequently for all kinds of system plugins.


OK. I tried making an alias, but did something wrong when I was still trying to debug the plugin from the command line. Then I found the article and never tried a symlink in this manner.

Steve Mills
Drummer, Mac geek
http://sjmills5.home.mchsi.com/


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Debugging Quick Look plugins (From: Steve Mills <email@hidden>)
 >Re: Debugging Quick Look plugins (From: Chris Espinosa <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.