Running a Build Phase as Root
Running a Build Phase as Root
- Subject: Running a Build Phase as Root
- From: James Murdza <email@hidden>
- Date: Wed, 23 Dec 2009 02:24:47 -0500
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?
_______________________________________________
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