Changing Bundle Display Name?

Hi all,


I am at that stage now where I am tidying up, triple checking..dotting the i's and crossing the t's as it were...


However, something that has always worked for me is failing to do so and I can't fathom out what is going wrong!


Usually I have my explicit bundle id set up and then I just edit the 'Bundle Name' in info.plist to change the display name but it just wont change when I am testing on my iPhone - I have added 'Bundle Display Name' to the info.plist and still not working.


It is working fine on the simulator but I am not confident that it will deploy with the correct display name now when it comes to distribution - has anyone else experienced this issue, if so what was your resolution?


Thanks

Mike

Answered by KMT in 29552022

It's not clear if you're using a macro to set the name or if you're hard coding a name string in the Info.plist 'bundle display name'...?


I'm also assuming you're talking about the name shown under the app icon on the springboard...

Are you editing the Info.plist directly or setting the bundle display name via Xcode/Target/Info? Did you check those same values at the Project level?

Did you change the name using the Identify Inspector?

Did you use Xcode's 'Product' menu with the option key pressed, then select 'Clean Build Folder' to force it to adopt new settings?

Did you delete the old version(s) off the simulator first, then build?

Is the bundle display name localized?

Check the build settings too.

Build Settings > Product name is set to what I would like it to be.


Could it be my phone some how caching the name?

Accepted Answer

It's not clear if you're using a macro to set the name or if you're hard coding a name string in the Info.plist 'bundle display name'...?


I'm also assuming you're talking about the name shown under the app icon on the springboard...

Are you editing the Info.plist directly or setting the bundle display name via Xcode/Target/Info? Did you check those same values at the Project level?

Did you change the name using the Identify Inspector?

Did you use Xcode's 'Product' menu with the option key pressed, then select 'Clean Build Folder' to force it to adopt new settings?

Did you delete the old version(s) off the simulator first, then build?

Is the bundle display name localized?

Hi KTM,


Yes I am talking about the name shown under the app icon.


Usually, and in this case, I edit it in Target/Info/Bundle Name - change it there and it works.


I have not changed it in the Indentity Inspector and I have cleaned the build multiple times, deleted off my iPhone more than a handful of times, rebooted (soft reboot and hard reboot).


When I check the project level in Build Settings it does display the name I want under product name.


I haven't changed anything in the localisation so I cannot answer that one I am afraid.


Thanks again,

I have just noticed one thing - the info.plist target membership is not defined - (unchecked)

The Info.plist is not part of the target membership because it's not compiled into the binary. Don't worry about that one.

Ok thanks Bob.

I have just built it on my partner's phone and it appears to be working fine 😕


It must be retaining something from the previous build on my iPhone. How strange is that?

😐I changed everything , but it doesn't work

Delete the app off your iPhone, then power cycle it, then do another option-clean and go again.


It's not that strange for cached assets/builds to stick around, I think.

Some of these methods didn't work for Safari Extensions. I am not sure whether anything is being cached or not.

Changing Bundle Display Name?
 
 
Q