Bundle display name missing space characters

喜你入骨 提交于 2019-11-27 15:40:19

问题


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.


回答1:


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;




回答2:


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




回答3:


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




回答4:


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>




回答5:


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




回答6:


Give More Space in Bundle Display Name like abc def abcdef



来源:https://stackoverflow.com/questions/46337691/bundle-display-name-missing-space-characters

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!