• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Executing Shell Scripts using XCode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Executing Shell Scripts using XCode (From: JanakiRam <email@hidden>)
 >Re: Executing Shell Scripts using XCode (From: Nick Zitzmann <email@hidden>)
 >Re: Executing Shell Scripts using XCode (From: JanakiRam <email@hidden>)

  • Prev by Date: Re: I'm quite confused...
  • Next by Date: Re: I'm quite confused...
  • Previous by thread: Re: Executing Shell Scripts using XCode
  • Next by thread: App crashes when debugging, not in normal execution
  • Index(es):
    • Date
    • Thread