Re: Xcode 2.4.1 locking build directories after build
Re: Xcode 2.4.1 locking build directories after build
- Subject: Re: Xcode 2.4.1 locking build directories after build
- From: Mike <email@hidden>
- Date: Thu, 30 Aug 2007 23:21:39 -0700
I use several shell scripts that call xcodebuild to build.
I am running my 1st shell script using sudo which then fires off 3 or 4
other shell scripts to build my product. For each project I have a block
of code that looks like this:
cd "${LOCAL_COMPONENTS_BUILD_PATH}/Daemon"
xcodebuild -project "Daemon.xcodeproj" -alltargets -configuration
"Deployment"
cd "${LOCAL_COMPONENTS_BUILD_PATH}/Daemon/build/Deployment"
${DITTO} "${DAEMON_NAME}" "${DAEMON_OUTPUT_PATH}"
cd "${DAEMON_OUTPUT_PATH}"
chgrp "${SUDO_USER}" "${DAEMON_NAME}"
chown "${SUDO_USER}" "${DAEMON_NAME}"
I am logged in as the "admin" account on my system when I run my script
with sudo so and I can see the "build" dirs after my scripts run. The
build dirs don't have the red lock icon on them, just their x bits
cleared for group and others (but not for owner) in the filesystem.
Any subsequent attempts to build the affected projects either from a
script or manually in XCode fails with Xcode saying permission denied.
I solved the problem for now by cleaning all the projects after build
and then removing the build dirs like this:
cd "${LOCAL_COMPONENTS_BUILD_PATH}/Daemon/"
xcodebuild -project "Daemon.xcodeproj" -alltargets -configuration
"Deployment" clean
rm -R -f "build"
but it would be nice to know why that is happening.
Thanks,
Mike
Chris Espinosa wrote:
On Aug 30, 2007, at 10:55 PM, Mike wrote:
xcodebuild (using Xcode 2.4.1) appears to be locking the "build"
directories of all projects I build from scripts after they are built.
Specifically it is clearing the "w" bit for group and others in the
file permissions. Has anyone seen this behavior or know what causes it?
We know of nothing that could be causing this, except a shell script
build phase that does this explicitly.
Explain "all projects I build from scripts." Is that scripts that
invoke xcodebuild?
Are you running xcodebuild as a different user or with elevated
permissions? If you run xcodebuild under sudo, a user who does not have
administrator privileges will not be able to see directories that
xcodebuild creates.
Chris
_______________________________________________
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