Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bundle display name missing space characters

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.

like image 744
Mai Quân Nguyễn Avatar asked Sep 21 '17 07:09

Mai Quân Nguyễn


5 Answers

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

like image 127
Mike Sprague Avatar answered Nov 19 '22 14:11

Mike Sprague


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;

like image 25
Alex Motor Avatar answered Nov 19 '22 14:11

Alex Motor


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

like image 11
ChikabuZ Avatar answered Nov 19 '22 14:11

ChikabuZ


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

like image 5
MateusK Avatar answered Nov 19 '22 14:11

MateusK


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

like image 2
Ivan Besarab Avatar answered Nov 19 '22 14:11

Ivan Besarab