Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Running a Build Phase as Root
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Running a Build Phase as Root



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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.