Simple shell script fails in Xcode 3.0
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