Re: Question about Info.plist's
Re: Question about Info.plist's
- Subject: Re: Question about Info.plist's
- From: Gabriel Zachmann via Cocoa-dev <email@hidden>
- Date: Thu, 20 Aug 2020 21:03:46 +0200
Thanks a lot for everyone's insights and suggestions!
For the record:
I have now shed a bit of old baggage in my code.
(I did the version management and the build number incrementing too cumbersome;
I must have picked up the CFBuildNumber somewhere 14 years ago ...)
Anyways, I am now using the CFBundleVersion for the build number (1, 2, 3, ...)
and the CFBundleShortVersionString for the human-readable version number
(3.1.2).
I am using essentially these lines in my shell script:
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" $plist)
buildNumber=$(($buildNumber + 1))
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" $plist
which gets executed by Xcode in a "Run Script" phase before the "Compile" phase.
Best regards, Gabriel
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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