I'd like to switch app names (bundle display name) via build config. So that way if I build by "dev" scheme I get an app on my home screen that is called "App Dev" and when I build my "stage" scheme I get an app called "App Stage" and so on.
So up until now this worked really good. I have a custom build setting entry in my project called APP_DISPLAY_NAME
and I use that variable in my Info.plist to set the CFBundleDisplayName
with $(APP_DISPLAY_NAME)
.
Now the app should be renamed to "My App". Two words, separated by space and for some reason Xcode drops the spaces. The app now get's called "MyApp", even though the value in the build settings contains a space.
I have tried adding  
,  
, \U00A0
and funnily enough all these characters end up in the app name. I end up with "My App"... apparently the only character that doesn't work is space.
So how do I get my space back? Ideally without switching out the whole Info.plist for each build config.