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

Re: Versions


  • Subject: Re: Versions
  • From: David Wollner <email@hidden>
  • Date: Thu, 29 Jan 2004 09:03:14 -0800

For an open source project, I wrote a quick program which is run as the last step in the project builder tasks. All it does is replace the string "VERSION" in the Info.plist with the appropriate string from the include file version.h. I haven't ported it to xcode yet, but I don't anticipate many changes. I took the simple method and just replaced strings. A better method would be to actually parse the XML and replace the appropriate entries.

	- David Wollner

On Jan 29, 2004, at 7:24 AM, Steve Mills wrote:

Nobody has an answer for this?

From: Steve Mills <email@hidden>
Subject: Re: Versions
Date: Sun, 25 Jan 2004 17:54:55 -0600
To: email@hidden

On Jan 23, 2004, at 21:58, Frank Midgley <email@hidden> wrote:

For Info.plist's at least you can use build variables. Just put
$(MY_BUILD_VARIABLE) wherever you want it throughout the plist file and
then have that variable defined when you build. This could be
specified in each target's build settings or passed to xcodebuild like:


	xcodebuild -buildstyle Deployment build MY_BUILD_VARIABLE="1.0"

You could have a separate build variable for the copyright year, etc.

OK, I added the variable to my build style. It correctly shows up in places that take just the variable. But I can't get it into the middle of a string, such as in my InfoPList.strings:

CFBundleGetInfoString = "Image Chest version $(MY_APP_VERSION),
Copyright 2004 Armpit Studios.";

I tried using rez syntax too:

CFBundleGetInfoString = "Image Chest version "$(MY_APP_VERSION)",
Copyright 2004 Armpit Studios.";

Any idears?

Steve Mills
Drummer, Mac geek
http://sjmills5.home.mchsi.com/
_______________________________________________
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.
_______________________________________________
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.

References: 
 >Re: Versions (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: Frameworks
  • Next by Date: Re: Versions
  • Previous by thread: Re: Versions
  • Next by thread: Re: Versions
  • Index(es):
    • Date
    • Thread