• 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
Running a Build Phase as Root
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Running a Build Phase as Root
      • From: Chris Hanson <email@hidden>
    • Re: Running a Build Phase as Root
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: How do I organize the directory structure of a build product?
  • Next by Date: how to get signed/unsigned comparison warning with CLANG (and get rid of a spurious ; warning)
  • Previous by thread: How do I organize the directory structure of a build product?
  • Next by thread: Re: Running a Build Phase as Root
  • Index(es):
    • Date
    • Thread