Re: Executing Shell Scripts using XCode
Re: Executing Shell Scripts using XCode
- Subject: Re: Executing Shell Scripts using XCode
- From: Chris Espinosa <email@hidden>
- Date: Fri, 21 Sep 2007 22:49:29 -0700
On Sep 21, 2007, at 10:17 PM, JanakiRam wrote: I want to copy my built products to Tiger OS Directory and there i need to create packagemaker command from there.
Can't this be possible with XCode ?.
-JanakRam. On 9/21/07, Nick Zitzmann <email@hidden> wrote: On Sep 21, 2007, at 7:28 AM, JanakiRam wrote:
> I've a script which should be executed with root previlages ( with > sudo ). How can i acheive this with XCode.
That's not something that's easily possible. What exactly are you trying to do? Why do you need root privileges for a shell script?
Generally the way to do this with Xcode is as follows:
- Write your Shell Script build phase that creates the package to do so relative to the build setting DSTROOT - When you need to build-and-install, do it from the command line with the command
sudo xcodebuild install DSTROOT=/
and authenticate there.
Xcode currently doesn't have the means to authenticate build phases that need admin privileges.
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