Re: storing git version in the plist
Re: storing git version in the plist
- Subject: Re: storing git version in the plist
- From: Wim Lewis <email@hidden>
- Date: Tue, 04 Dec 2012 14:35:32 -0800
On 4 Dec 2012, at 11:04 AM, Joel Reymont wrote:
> I tried adding a Run Script build phase to touch the unprocessed plist
> for each target but I can only insert the build phase after the Target
> Dependencies phase and the plist is (not)processed by then.
Xcode has always had trouble with this ... it's pretty frustrating.
Our solution is to have a separate target which consists only of a Run Script Phase that generates the version.h file, make the app target depend on that target, and use the generated version.h file in the preprocessed .plist. This way you can get the version.h generation to happen before the invisible "preprocess the plist" phase.
Remember to list the version.h file in the output files list of the run script phase that generates it --- the Xcode docs claim it uses that list when computing dependencies.
_______________________________________________
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