Re: Running a Build Phase as Root
Re: Running a Build Phase as Root
- Subject: Re: Running a Build Phase as Root
- From: Chris Espinosa <email@hidden>
- Date: Wed, 23 Dec 2009 11:29:20 -0500
On Dec 23, 2009, at 2:24 AM, James Murdza <email@hidden>
wrote:
For Xcode projects that have to installed, not run, (like plug-ins)
I find it helpful to make a Build and Install aggregate target. I
add a copy files build phase to my Build and Install target to copy
my product into the installation directory. However this becomes
difficult when I do not have permission to the installation directory.
I can use a run shell script build phase in combination with sudo,
but then I have to open a terminal window before building to
authorize sudo. This is very hard to explain to someone who I want
to share my source code with. I can change the permissions of my
installation directory or of my Xcode executable, but this can lead
to other problems and again, other people who want to use my project
will have to do the same.
Any better solutions?
The generally accepted way to do this is to sudo xcodebuild in the
project directory. This is also the only way to invoke the "install"
build action, which invokes installation functions but can't be
initiated from the GUI.
Chris
_______________________________________________
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