• 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
Simple shell script fails in Xcode 3.0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Simple shell script fails in Xcode 3.0


  • Subject: Simple shell script fails in Xcode 3.0
  • From: email@hidden
  • Date: Fri, 2 Nov 2007 12:19:09 -0400

Hi,

I have a simple script in a Run Script build phase that checks for the existence of a link and creates it if needed. The script is:

cd "$CONFIGURATION_BUILD_DIR/$FULL_PRODUCT_NAME/Contents/Frameworks"

if [ ! -e XXX.framework ]
then ln -s "./SomeFramework.framework/Frameworks/XXX.framework" XXX.framework
fi



This worked on Tiger and it works in Terminal on Leopard, but when Xcode runs it in a build phase, the check doesn't work and it tries create the link, which fails because it already exists. The script is run via /bin/sh and the environment looks OK. I recall reading that Leopard made some changes for UNIX 2003 compatibility, so I thought it might be related to that, but I can't any references to that.


Any suggestions?

Thanks,

Aaron Burghardt
_______________________________________________
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


  • Follow-Ups:
    • Re: Simple shell script fails in Xcode 3.0
      • From: email@hidden
  • Prev by Date: Can't instal XCode 3.0 on Leopard
  • Next by Date: Re: Xcode 3: Keyboard shortcut for "Continue"
  • Previous by thread: Re: Can't instal XCode 3.0 on Leopard
  • Next by thread: Re: Simple shell script fails in Xcode 3.0
  • Index(es):
    • Date
    • Thread