Re: Problem with dependency checking in Run Script phase - Solved!
Re: Problem with dependency checking in Run Script phase - Solved!
- Subject: Re: Problem with dependency checking in Run Script phase - Solved!
- From: "Yoav Gonen" <email@hidden>
- Date: Thu, 22 Dec 2005 23:55:15 +0200
Scott Tooker wrote:
> > Hello,
> >
> > I've created a Run Script phase with a single line of script:
> >
> > cp ${SRCROOT}/myfile ${DERIVED_FILE_DIR}
> >
> > I put $(SRCROOT)/myfile in the "Input Files" box and $
> > {DERIVED_FILE_DIR)/myfile in the "Output Files" box of the Run Script
> > Phase Info dialog.
> >
> > From the documentation, after running once and copying the file (and I
> > see it is indeed copied), the script should not run again unless I
> > change ${SRCROOT}/myfile. But it is run every time I compile. It seems
> > there is a problem with the dependency-checking of the script phase.
> > Is this a known issue? Or am I doing something wrong?
>
> First off, what version of Xcode are you running? From what you describe
> above, we should not be running the build phase every time.
> Also, does the file in question have an odd or incorrect timestamp (for
> example, one in the future)?
I'm using Xcode 2.2, and I found the problem. I had an Input File line such
as $(SRCROOT)/myfile, and I cut '$(SRCROOT)/myfile2' from somewhere and
pasted onto the same line. I had an invisible newline at the end of the cut
string, so I ended up with a line such as
${SRCROOT)/myfile2\n$(SRCROOT)/myfile. You won't see past the "\n" unless
you look closely at the SCRIPT_INPUT_FILE_n (and probably
SCRIPT_OUTPUT_FILE_n) environment variables.
Sorry, my bad.
Yoav
_______________________________________________
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