12

I'm trying to add spaces to my app name and even though my Bundle display name contains spaces they won't show up on the simulator.

Does anybody know how do achieve that?

Thank you very much

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Lennart P.
  • 316
  • 1
  • 6
  • 20

6 Answers6

21

From iOS 11, if app name consists of more than 12 characters(smaller devices), OS will automatically remove spaces.

I don't see any workaround for that as of now.

Mithra Singam
  • 1,905
  • 20
  • 26
  • There is a workaround by adding non-breaking space (" ") – Tankista Mar 01 '18 at 09:25
  • Thought I was going crazy until i found this answer - nothing in other answers was working for me. There also seems to be some dependence on screen size - spaces are not removed from my app name on larger screens (like iPhone 12) – Andy P Nov 25 '20 at 10:35
13

Open .plist as SourceCode and then in xml format use   instead of space. You can find appname under xml tag "CFBundleDisplayName" or you can add this tag. e.g App name

Zeeshan Ghazanfar
  • 1,351
  • 11
  • 11
5

Open project "Info".

Add a property "Bundle Display Name" into "Custom iOS Target Properties". (as "Key")

Enter the display name, that will be shown on iPhone/iPad screen under an app icon. (as "Value")

And also you should delete previously installed app and reinstall it. enter image description here

harsha.kuruwita
  • 1,315
  • 12
  • 21
  • 5
    This also doesn't work, it still shows the name without a space in between the words – Lennart P. May 31 '17 at 04:47
  • 2
    I'm sorry it does work but apparently my name reached some sort of character limit which caused the words to move together but after adjusting the name a bit it shows the name with spaces, thank you – Lennart P. May 31 '17 at 04:48
  • iPhone's font is not fixed width. So it depends which character is used. For example, the character of "M" or "W" take more space.In contrast, "i" or "t" need narrower space. – harsha.kuruwita May 31 '17 at 04:59
1

Goto build settings, Under product name, set the desired name with spaces. It will work fine.

enter image description here

pkc456
  • 8,350
  • 38
  • 53
  • 109
1

From the iOS 11 onwards, Please follow below ToDo I have did and worked well !! Link

Kirtikumar A.
  • 4,140
  • 43
  • 43
1

Use this below string in your project which will give the perfect app name with proper single character space:

Demo App

The upper code is tested and verified in different environment setups and app name set in .xcconfig file.

You can also try with default config if it is working or not.

Note: You don't need to type otherwise it won't work, this will only work if you use my given string, so use it and modify only words, not the space.