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: 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