Re: Simple shell script fails in Xcode 3.0
Re: Simple shell script fails in Xcode 3.0
- Subject: Re: Simple shell script fails in Xcode 3.0
- From: email@hidden
- Date: Fri, 2 Nov 2007 13:35:42 -0400
Never mind, it doesn't work in Tiger either, but I figured it out.
The test is following the symbolic link, so I changed my test to:
if [ ! \( -e XXX.framework -o -L XXX.framework \) ]
...
The project was accidently changed so the target of the symbolic link
wasn't being copied, which caused the original test to fail even
though the link existed.
Thanks for listening.
Aaron
On Nov 2, 2007, at 12:19 PM, email@hidden wrote:
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
_______________________________________________
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