Xcode: How to use multiple "Display Name" values, different per each configuration?

Viewed 1227

In Xcode we use multiple configurations to compile several different apps, with different Bundle IDs and Display Names.

While the "Identity -> Bundle Identifier" correctly shows a greyed-out "" read-only value, this is not the same with the "Identity->Display Name", resulting to a common name for all configurations.

Note that we have added different values on the "Build Settings -> Product Name" property for each configuration, since our Info.plist entry for CFBundleDisplayName is $(PRODUCT_NAME).

We tried to have a blank "Identity->Display Name" and initially this worked (the Name was eventually the one provided by the configuration's "Build Settings -> Product Name").

However, at some point (when switching Schemes we think) the "Identity->Display Name" took again a generic name (the one used for the .app filename) and this caused all the different "Build Settings -> Product Name" values to be replaced by this same generic name.

Is this a bug? What should we do to NOT have the "Identity->Display Name" editable and rather get its value from the configuration values (like the Bundle ID does)?

Note: We also tried all suggestions provided here: Xcode scheme change display name They did not work, see some comments below the answers there.

1 Answers

When I'm using a user defined setting as the display name, it is not shown as <Multiple values>, however it does take its value from the user defined setting. You can see it changing by switching the scheme, cleaning and then switching from the General tab, and then switching back to the General tab.

Related