36

When I give Bundle display name with space as "A B C D", I get the app name as "ABCD". This happens only on the iOS 11.I tried override name"CFBundleDisplayName" in my InfoPlist.string and use special unicode character \U00A0 (No-break space) and it doesn't help me.

Mai Quân Nguyễn
  • 369
  • 1
  • 3
  • 5

6 Answers6

80

This is because of a change Apple made in iOS 11 for truncating for longer app names. If the name is longer than 12 characters, the spaces will be removed. Otherwise, they'll still exist.

For example, Guide book app will become Guidebookapp, but Gui boo app will stay as Gui boo app.

Using unicode   (FIGURE SPACE) works because it isn't an ascii space. I would be hesitant to use this as a solution because it seems reasonable that Apple would "fix" this bug and remove   for apps with names longer than 12 characters.

https://forums.developer.apple.com/thread/77832

Mike Sprague
  • 3,567
  • 1
  • 22
  • 25
  • 9
    Finally an actual explanation of what is happening! Thanks! However strange that there is still no official documentation from Apple about this. – Dominic Jan 10 '18 at 16:42
  • Thanks. It kept the spaces for 14 characters for me too on iPhone 11 Pro. – Guy Lowe Dec 19 '19 at 00:33
  • This could be an attempt by Apple to sanitize homoglyph abuse. I use an ASCII7 conversion function in my web applications to strip UTF8 from values that are used as keys. – James Moberg Dec 27 '19 at 19:25
57

I have the same issue. Only on iOS 11. On lower iOS version this issue isn't appeared.

I resolved this with:

  1. Open info.plist as Source code(right click, open as...)
  2. Find CFBundleDisplayName
  3. Replace normal space with unicode  

That's all. After that display name shows with space.

UPDATED:

  works only when typed in *.plist. Can't be inserted in Display name in Xcode project settings;

Community
  • 1
  • 1
Alex Motor
  • 928
  • 5
  • 20
13

It works for me when I replace space with FIGURE SPACE in InfoPlist.strings manually or with a script.

ChikabuZ
  • 10,031
  • 5
  • 63
  • 86
6

Edit info.plist as source code but use   instead of  .   looks like 2 spaces.

MateusK
  • 110
  • 3
2

In my case this value was missing from info.plist file so I just add the following to it:

<key>CFBundleDisplayName</key>
<string>$(PRODUCT_NAME)</string>

should look like this

Ivan Besarab
  • 990
  • 7
  • 12
-4

Give More Space in Bundle Display Name like abc def abcdef enter image description here

Bhumesh Purohit
  • 491
  • 1
  • 8
  • 26