Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is Executable Built with Permission 755 instead of 775?




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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

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: http://lists.apple.com/mailman/options/xcode-users/email@hidden

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 © 2007 Apple Inc. All rights reserved.