• 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: Wed, 19 Aug 2020 20:47:07 +0200

Thanks a lot for the insights.

> On 19. Aug 2020, at 18:44, Glenn L. Austin <email@hidden> wrote:
>
> No, you can't use an "earlier" key to create a "later" value - but you can
> use code to do basically the same thing.
>
> Or, you can use the same variable that sets your CFBuildNumber to set your
> CFBundleVersion.
>

I tried this:

  plutil -replace CFBundleVersion -string '$(CURRENT_PROJECT_VERSION) 111'
qq.plist

which works -- but what I need to do is something like this:

  plutil -replace CFBundleVersion -string "\$(CURRENT_PROJECT_VERSION)
$build_number" qq.plist

(where $build_number is a variable in my shell script).

Problem: I get the error message "Illegal variable name."
(I am not even sure whether it is a shell euro message or from plutil...)

I tried more variations, like

   plutil -replace CFBundleVersion -string "\\$\(CURRENT_PROJECT_VERSION\) 111"
qq.plist

all to no avail ...


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

  • Follow-Ups:
    • Re: Question about Info.plist's
      • From: Ben Kennedy via Cocoa-dev <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>)

  • Prev by Date: Re: Question about Info.plist's
  • Next by Date: Re: Question about Info.plist's
  • Previous by thread: Re: Question about Info.plist's
  • Next by thread: Re: Question about Info.plist's
  • Index(es):
    • Date
    • Thread