Bundle display name missing space characters
Asked Answered
R

6

39

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.

Reprobative answered 21/9, 2017 at 7:16 Comment(0)
R
85

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

Regress answered 8/1, 2018 at 19:9 Comment(3)
Finally an actual explanation of what is happening! Thanks! However strange that there is still no official documentation from Apple about this.Hydro
Thanks. It kept the spaces for 14 characters for me too on iPhone 11 Pro.Fitter
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.Beauteous
S
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;

Smitty answered 25/9, 2017 at 7:36 Comment(11)
Hi, did you opened a ticket into bugreport.apple.com regarding this?Strike
@AndreaLeganza, no.Smitty
So is this a feature or a bug? In the apple developer forums I could only find threads describing the issue and this workaround, however no official explanation.Hydro
@Dominic, why can it be feature? There is no official information about it. Therefore, it's a bug.Smitty
Note that   is displayed as a double space in the Settings app on iOS 11 and the Home screen on iOS 9 & 10.Enteric
@DaveAlden, Yes, it is.Smitty
Found thread on Apple Forum reason: forums.developer.apple.com/thread/77832.Smitty
simply putting two spaces in the Bundle display name achieves the same effect.Shoon
What about in multiple target context using "InfoPlist.strings" to translate app names ?Trixie
It's make app displayed as a double space on name app title of notificationVelocity
@bkit4u, ofc. Like the app name, too. It was notified above.Smitty
P
16

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

Propst answered 6/2, 2019 at 13:43 Comment(2)
just copy-paste space from your message and finally got spaceRaspings
Very odd. It works at my end by copy/pasting "your" space...Anschluss
L
6

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

Leningrad answered 11/10, 2017 at 14:55 Comment(1)
`  ` works great on iOS 9.0 but doesn't work in present versions of iOS (11+).Kreindler
C
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

Cerement answered 27/6, 2019 at 23:45 Comment(0)
T
-4

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

Transmittal answered 16/4, 2019 at 7:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.