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

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
References: 
 >Simple shell script fails in Xcode 3.0 (From: email@hidden)

  • Prev by Date: IB Carbon Simulator and tabs
  • Next by Date: Re: Xcode 2.5 can't #include_next <stdarg.h>
  • Previous by thread: Simple shell script fails in Xcode 3.0
  • Next by thread: breakpoints in frameworks
  • Index(es):
    • Date
    • Thread