Re: Question about Info.plist's
Re: Question about Info.plist's
- Subject: Re: Question about Info.plist's
- From: Ben Kennedy via Cocoa-dev <email@hidden>
- Date: Wed, 19 Aug 2020 11:47:07 -0700
> On 19 Aug 2020, at 9:07 am, Gabriel Zachmann via Cocoa-dev
> <email@hidden> wrote:
>
> The plist file has, additionally to all the default stuff, the key
> CFBuildNumber (with a value that I increment automatically).
>
> In Xcode, I tried to change "Bundle version" to a value like
>
> $(CURRENT_PROJECT_VERSION)_$(CFBuildNumber)
As an aside, it strikes me as a dubious idea to call the latter
"CFBuildNumber". That sounds like the name of a well-known CoreFoundation key,
but as far as I can tell, it isn't one. (A Google search for "cfbuildnumber
site:apple.com" yields only two results for me, one of which is a Tech Note
that seems to contain errors [1]).
To avoid false inferences or potential confusion, if it were me I would use a
completely different name for the key, such as "MyProjectBuildNumber" or
whatever. (But why not just take advantage of the existing
CFBundleShortVersionString and CFBundleVersion?)
-ben
[1] https://developer.apple.com/library/archive/technotes/tn2259/_index.html:
Under the heading "What's Next", about a third of the way down, the text seems
to confuse "CFBundleVersion" with what's actually CFBundleShortVersionString,
and "CFBuildNumber" with what's actually CFBundleVersion. I've just filed a bug
report on this: FB8464082.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden