• 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
sudo in Run Script Build Phase
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sudo in Run Script Build Phase


  • Subject: sudo in Run Script Build Phase
  • From: Paul FitzGerald <email@hidden>
  • Date: Sun, 17 Feb 2008 16:48:59 -0800

In my project I have a Shell Script target that I'm trying to use to package up the application. In this shell script I'm trying to do things like...
chown -R root:admin MyApplication.app
chmod -R 775 MyApplication.app


When I build the target these commands seem to be doing nothing. Yet they are not throwing errors either.
My thinking is that I need to run them with sudo but I get nowhere there either (I assume since I'm not given a way to authenticate).


To make things a little more interesting, this will eventually be run as part of an automated build process from a command something like...
xcodebuild -target "MyApplication Package" -configuration Release clean


Anyone have an idea why this is not working for me?
Can I expect that sudo might solve the issue (or even running as root) or is there something else going on?


Maybe I'm just being dumb, but I am stuck and could use a little help here.
Thanks,
Paul FitzGerald
_______________________________________________
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
  • Follow-Ups:
    • Re: sudo in Run Script Build Phase
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Re: OT? gethostbyname failure
  • Next by Date: Re: sudo in Run Script Build Phase
  • Previous by thread: Fwd: OT? gethostbyname failure
  • Next by thread: Re: sudo in Run Script Build Phase
  • Index(es):
    • Date
    • Thread