41

My bundle display name is "Standford 2015" in Xcode but it is showing on my iPhone as "Standford2015" when it's installed.

Am I doing anything wrong?

jscs
  • 63,095
  • 13
  • 148
  • 192

7 Answers7

53

For iOS 11 you can open the info.plist as source code and use   instead of spaces

jcesarmobile
  • 48,897
  • 10
  • 119
  • 162
31
  1. Open the info.plist file as SourceCode.
  2. Use &#x2007 ; as separator for the space in CFBundleDisplayName.

Example

<key>CFBundleDisplayName</key>
<string>App&#x2007;Name</string>
Phani Bob
  • 667
  • 9
  • 15
7

I'd actually recommend using &#x0020; instead of &#x2007;. The latter is a "figure space" which looks awkward compared to the former, which is simply a space. See comparison below:

Comparison

jdixon04
  • 1,239
  • 15
  • 26
6

In your localized InfoPlist.string DO NOT use spaces but instead use unicode character "No-break space" :

http://www.fileformat.info/info/unicode/char/00a0/index.htm

so your line in InfoPlist.string should look like :

"CFBundleDisplayName" = "My\U00A0app";

Nicolas Bossard
  • 977
  • 1
  • 9
  • 13
  • 3
    In your InfoPlist.strings, use the character `\U2007` ("figure space") rather than the "no-break space". – Jleuleu Apr 08 '20 at 12:53
  • Thanks, in my info.plist I loaded the name from my build settings, ` ` did not work for me but `\U2007` did. – HartWoom Jan 21 '22 at 12:02
4

I resolved this issue by replacing space with unicode symbol like NB space.

I presented a little instruction in this post.

Alex Motor
  • 869
  • 5
  • 20
0

Use plist CFBundleDisplayName to set the space below the icon.

More info: What's the difference between "bundle display name" and "bundle name" in cocoa application's info plist

Community
  • 1
  • 1
Dmitry Sadakov
  • 2,100
  • 2
  • 19
  • 32
0

Possible workaround: use localizable InfoPlist.strings file with content:

/* Localized versions of Info.plist keys */
"CFBundleDisplayName" = "Standford 2015";