• 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: Automagic version updates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automagic version updates


  • Subject: Re: Automagic version updates
  • From: Kevin Grant <email@hidden>
  • Date: Sun, 28 Mar 2004 18:09:29 -0600

I am looking for a way to have CFBundleGetInfoString automatically include the CFBundleShortVersionString. This would allow the version to be displayed in the finder.
Has anyone got a strategy for doing this in xCode?


If you use Xcode's normal "YourApplication-Info.plist" template, then you set much of this information using the Target inspector. When you do that, you can actually embed Xcode variables (although sometimes the GUI doesn't give you much typing space).

In the Target inspector, first go to the Build tab and define a new variable, e.g. "MY_INFO_STR", and give it the desired value.

Then, in the inspector's Properties tab, choose to open the .plist as a file, find the XML tags you want, and simply enter variable syntax where appropriate: $(MY_INFO_STR) in this case.

When you build, Xcode will automatically substitute the value that you give in the Build tab, when creating the final Info.plist file.

Kevin G.
http://homepage.mac.com/kmg/
mail to kevin at ieee dot org
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Automagic version updates
      • From: Michael Cashwell <email@hidden>
References: 
 >Automagic version updates (From: Daryl Thachuk <email@hidden>)

  • Prev by Date: Text Navigation - Smart Home
  • Next by Date: Re: Text Navigation - Smart Home
  • Previous by thread: Automagic version updates
  • Next by thread: Re: Automagic version updates
  • Index(es):
    • Date
    • Thread