50

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,694
  • 13
  • 151
  • 195

9 Answers9

58

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

jcesarmobile
  • 51,328
  • 11
  • 132
  • 176
38
  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
  • 745
  • 9
  • 15
13

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,435
  • 16
  • 28
7

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
  • 1,077
  • 1
  • 10
  • 15
  • 5
    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
  • 928
  • 5
  • 20
1

This could also be caused by the app icon title character limit. e.g. if app name exceeds 12 chars (I think), spaces are removed on build.

Mateus
  • 357
  • 1
  • 4
  • 14
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,128
  • 3
  • 19
  • 34
0

I'm using 3 spaces in app name string (in place of one space) in Info.plist and it works for me:

<key>CFBundleDisplayName</key>
<string>App   Name</string>
Tritonal
  • 607
  • 4
  • 16
-1

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

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