• 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: Question about Info.plist's
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Question about Info.plist's (From: Gabriel Zachmann via Cocoa-dev <email@hidden>)
 >Re: Question about Info.plist's (From: "Glenn L. Austin via Cocoa-dev" <email@hidden>)
 >Re: Question about Info.plist's (From: Gabriel Zachmann via Cocoa-dev <email@hidden>)
 >Re: Question about Info.plist's (From: Ben Kennedy via Cocoa-dev <email@hidden>)

  • Prev by Date: Re: Question about Info.plist's
  • Next by Date: Strange error when resolving a security-scoped bookmark
  • Previous by thread: Re: Question about Info.plist's
  • Next by thread: Re: Question about Info.plist's
  • Index(es):
    • Date
    • Thread