2

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?

Brandon Minnick
  • 13,342
  • 15
  • 65
  • 123
ssmsexe
  • 209
  • 2
  • 4
  • 10

1 Answers1

0

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
ssmsexe
  • 209
  • 2
  • 4
  • 10
  • Nice solution, but this space is actually bigger than spaces in other app names on my iOS device. Isn't there a proper way to escape spaces? – Niels Jul 12 '19 at 10:55