I am trying to rename my CFBundleDisplayName using plutil on my build server. Here is part of the bash script that I am running.
BUNDLE_DISPLAY_NAME='MY'" "'APP'
plutil -replace CFBundleDisplayName -string "$BUNDLE_DISPLAY_NAME" $PLIST_ADDRESS
I expect this script, changes the CFBundleDisplayName to "MY APP"
but what I have now is MY APP
.
Anyone has any idea how can I get my expected output from plutil?
In case that anyone faced similar issue with space in CFBundleDisplayName with plutil, what I ended up to do is to copy the " "
(actual character for FIGURE SPACE not the UTF-16 (hex) code) in the script to resolve the problem.
BUNDLE_DISPLAY_NAME='MY'" "'APP'
plutil -replace CFBundleDisplayName -string "$BUNDLE_DISPLAY_NAME" $PLIST_ADDRESS