• 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: storing git version in the plist
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: storing git version in the plist
      • From: Joel Reymont <email@hidden>
References: 
 >storing git version in the plist (From: Joel Reymont <email@hidden>)
 >Re: storing git version in the plist (From: Joel Reymont <email@hidden>)

  • Prev by Date: Re: storing git version in the plist
  • Next by Date: Re: storing git version in the plist
  • Previous by thread: Re: storing git version in the plist
  • Next by thread: Re: storing git version in the plist
  • Index(es):
    • Date
    • Thread