• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xcode 2.4.1 locking build directories after build
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode 2.4.1 locking build directories after build


  • Subject: Re: Xcode 2.4.1 locking build directories after build
  • From: Chris Espinosa <email@hidden>
  • Date: Thu, 30 Aug 2007 23:26:17 -0700


On Aug 30, 2007, at 11:21 PM, Mike wrote:

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.


Do you have Deployment Postprocessing set in your Deployment configuration and, if so, what is the Install Mode Flag set to?  This affects the objects directory (the build product) not the intermediates, but if you have those set to the same place it could affect that.

Set the Install Mode Flag build setting in the Deployment configuration to something that allows all-read.

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

References: 
 >Xcode 2.4.1 locking build directories after build (From: Mike <email@hidden>)
 >Re: Xcode 2.4.1 locking build directories after build (From: Chris Espinosa <email@hidden>)
 >Re: Xcode 2.4.1 locking build directories after build (From: Mike <email@hidden>)

  • Prev by Date: Re: Xcode 2.4.1 locking build directories after build
  • Next by Date: Re: Distributed build problems - unknown compiler error and not building locally...
  • Previous by thread: Re: Xcode 2.4.1 locking build directories after build
  • Next by thread: Re: Xcode 2.4.1 locking build directories after build
  • Index(es):
    • Date
    • Thread