Re: Dependency Checking Woes
Re: Dependency Checking Woes
- Subject: Re: Dependency Checking Woes
- From: Steve Checkoway <email@hidden>
- Date: Fri, 17 Mar 2006 03:43:26 -0800
On Mar 16, 2006, at 4:55 PM, Rush Manbert wrote:
So after all this, my question boils down to this: Is there some
way to make my app project know that the static lib it depends on
has changed and to have it relink, even if the static lib has not
been added to the project? I'm hoping that one of the Apple Gods of
Xcode can help me out here.
I had a slightly similar situation. Instead of a static library, I
had a file that was being generated by a shell script phase and then
being linked in. The problem was that Xcode didn't realize that the
file was being changed so if I cleaned, built, and then built again,
Xcode would do nothing for the last build. (I could build a third
time and it would compile correctly.) While this isn't the same, I
need Xcode to rebuild a file every time and thus link every time I
pressed build.
My solution was to have a separate target upon which my main target
depended and run the shell script in that target. This causes Xcode
to rebuild the file and relink everything.
Perhaps something similar can be done in your case: have another
target that does nothing but touch one of your source files (a small
one, preferably) and have your main target depend on that. Every time
you press build, it should build one small file (mine is a two line
file containing two global variables, the date--in a particular
format--and the build number) and then link with your modified
libraries.
Alternatively, should this be a bug report/enhancement request?
I'd say it sounds like a good enhancement request to me although my
bug report on the above problem from March 26 of last year (bug
4068837) is still open.
- Steve
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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