Re: Why is Executable Built with Permission 755 instead of 775?
Re: Why is Executable Built with Permission 755 instead of 775?
- Subject: Re: Why is Executable Built with Permission 755 instead of 775?
- From: Scott Tooker <email@hidden>
- Date: Thu, 2 Feb 2006 11:24:56 -0800
On Jan 31, 2006, at 5:09 PM, Jerry Krinock wrote:
on 06/01/31 16:39, Shawn Erickson at email@hidden wrote:
On 1/31/06, Jerry Krinock <email@hidden> wrote:
After reading Apple's "Software Distribution" documentation I
decided to
look at the file permisisons inside my .app after packaging into
a .pkg and
installing using Installer.app.
I verified, as I read in "Software Distribution", that the process:
Xcode -> build -> PackageMaker -> Ship -> Installer
preserves the octal permissions of the files as they were in my
build.
"Software Distribution" recommends 775 for executables. However,
Xcode
builds my product's executables with 755.
Are you doing an install build? If so then what is "Install
Permissions" build setting set to?
My intention is to build this for deployment to customers on unknown
computers, and not for installation on my computer. I believe that
the
answers to your questions are in these target settings:
Deployment Location [not checked]
Installation Build Products Location /tmp/$(PROJECT_NAME).dst
Installation Directory $(HOME)/Applications
Skip Install [not checked]
Install Permissions a-w,a+rX
So, am I doing an "install build"?
Should I be doing an "install build"?
Okay, yes and no. What you want to do is post-process your built
application so it has the correct permissions and is stripped
appropriately. What you don't want to do is actually build the
application into your base system or a sparse "root" that you would
have to roll into a package.
To do this, I'd recommend the following settings in your "Release"
configuration:
ARCHS = ppc i386
DEPLOYMENT_POSTPROCESSING = YES
STRIP_INSTALLED_PRODUCT = YES
There are other settings that affect post-processing, but the default
values for those setting should be fine.
We realize that the "install" vs. "release" concept can be confusing
in Xcode and we want to clean this up in future Xcode releases (and
possibly provide the ability to generate a package or diskimage as
part of the Xcode build process).
Scott
What does "a-w,a+Rx" mean? It looks like some kind of Reverse Polish
Notation for Permissions. Can this be translated to a 3-digit octal
number
that I can understand, or is it more complicated than that?
Thanks!
Jerry
_______________________________________________
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
_______________________________________________
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