Bundle display name missing space characters

33.6k views Asked by At

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.

6

There are 6 answers

11
Alex Motor On

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;

3
Mike Sprague On

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

0
Ivan Besarab On

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

0
Bhumesh Purohit On

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

1
MateusK On

Edit info.plist as source code but use &#32; instead of &#x2007;. &#x2007; looks like 2 spaces.

2
ChikabuZ On

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