Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode, can Bundle Display Name be a variable for Product Name

Tags:

xcode

macos

ios

I see that $(PRODUCT_NAME) can be a variable for Bundle display name within the plist file,

but I would like the opposite to occur, for $(BUNDLE_NAME) to be the variable within Product Name in the target info. Is that a real variable? Can I make it one? Thanks!

like image 337
CQM Avatar asked May 06 '11 16:05

CQM


People also ask

What is bundle display name?

The user-visible name for the bundle, used by Siri and visible on the iOS Home screen.

How do I change my display name in Xcode?

Build Settings> Change "Product Name" TARGETS> Select app> Change "Display Name" Project Navigator> Select project name> Double-click> Change "project name"> Rename> Mange Scheme> Change "Scheme name"

How do I change my bundle name?

Change the Bundle IDChoose your project from the left side, then your app target under TARGETS, select the General tab and rename the Bundle Identifier.


1 Answers

In your target, go to "Build Settings" and add a "User-Defined Setting" (e.g. DISPLAY_NAME).

Then, go to the Info.plist of your target and add "Bundle display name" key and set its value to "$(DISPLAY_NAME)"

like image 128
asclepix Avatar answered Oct 20 '22 00:10

asclepix