Multiple targets iOS app with space in name

It`s a common trouble in iOS development to build an application that has more-than-one-word name because the Apple OS remove blank spaces since its 11 version for longer names (more than 12 characters), as discussed here: https://developer.apple.com/forums/thread/77832.

But with a 2 minutes Google search you`ll find some Stack Overflow answer saying that you should replace normal space with '&#x2007' in Info.plist at CFBundleDisplayName key. This situation happened with me, but when I opened the .plist file with BBEdit I saw this:

The name of my application is the value of PRODUCT_NAME variable

I am developing a white label app with some targets, that I build with different assets (and names) depending on which customer is requesting a version. So, the app's name is the value of the Target Environment Variable PRODUCT_NAME.

The Solution

At this SO answer, this guy Gilad Ronen pasted the name with the correct &#x2007 space, so you can simple copy the character, paste in your editor and replace all occurrences.

Look how the &#x2007 char takes more space than the regular one

Do this for all your app's targets and it is done!

Desenvolvedor Web e Mobile. Falando sobre coisas legais

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store