Re: agvtool auto generated version source file - where art thou ? [SOLVED]
Re: agvtool auto generated version source file - where art thou ? [SOLVED]
- Subject: Re: agvtool auto generated version source file - where art thou ? [SOLVED]
- From: "email@hidden" <email@hidden>
- Date: Wed, 2 Dec 2009 12:38:31 +0000
When using the Apple generic versioning system xcode will auto generate the versioning file but will not add it to the project.
It will however get compiled in.
The generated file is known as a derived source and can be viewed in the build folder at
<app-name>.build/<build config>/<target>.build/DerivedSources
All that is required is to declare externs for <My APP>VersionString and <My APP>VersionNumber.
Allowing you the option to set the generated file name seems to serve little purpose, except perhaps to permit the creation of a similarly named header containing the extern decs.
Regards
Jonathan Mitchell
Developer
http://www.mugginsoft.com
On 1 Dec 2009, at 21:41, email@hidden wrote:
> I use a couple of auxiliary executable foundation tools in my app.
> I have been setting their plists as text sections with the following Other Linker Flag:
>
> -sectcreate __TEXT __info_plist "MyServer-Info.plist"
>
> MyServer needs to know if it has been upgraded from another version.
> So I retrieve CFBundleVersion from the plist and proceed accordingly.
>
> Before a release I use agvtool to update the CFBundleVersion of my 25 or so *-info.plists.
> I can get agvtool to report that it has updated the CFBundleVersion for MyServer-Info.plist by utilising the build setting INFOPLIST_FILE = MyServer-Info.plist.
> I know my tool isn't a bundle but it seems to satisfy agvtool.
> However, even though agvtool reports that CFBundleVersion has been updated in MyServer-Info.plist the truth is otherwise - no change.
>
> Tthe agvtool docs it mentions an auto generated c file containing the versioning info.
> This will do the trick in the absence of a valid CFBundleVersion, except the auto generated C source never seems to appear.
>
> Does anyone know how to to bring it in from the cold?
>
> Regards
>
> Jonathan Mitchell
>
> Developer
> http://www.mugginsoft.com
>
>
>
>
>
>
> _______________________________________________
> 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
_______________________________________________
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