Re: Using defaults command to modify Info.plist changes permissions
Re: Using defaults command to modify Info.plist changes permissions
- Subject: Re: Using defaults command to modify Info.plist changes permissions
- From: Patrick Mau <email@hidden>
- Date: Tue, 15 Sep 2009 02:31:50 +0200
Hi Jonathan
Have you tried to modify the umask by putting one of the following
commands in your script?
umask 022 (for -rw-r--r-)
umask 027 (for -rw-r----)
I've never tried it myself, it's just a suggestion.
Patrick
On 14.09.2009, at 23:52, email@hidden wrote:
One of build phase script includes the perl variant of the following
terminal command to inject a build number into my info.plist
defaults write /Users/Shared/Release/MyApp.app/contents/Info
MyBuildNumber 123
Is it by design that the defaults command changes the access
permissions to 600 (ie: no access for anyone but the owner)?
defaults (1) doesn't mention this side effect. running on 10.6.
The effect of this is to kill the app for users who are not the
owner (at launch the info.plist cannot be read, hence no principal
class, hence no launch).
Jonathan Mitchell
Developer
http://www.mugginsoft.com
_______________________________________________
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