Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode - change bundle identifier but not product name

Tags:

xcode

ios

My bundle identifier has to match the one in the iOS dev portal:

com.mydomain.myappname

It seems the only way to do this in Xcode is to go to Targets, Build Settings, and change the Product Name to myappname. However, this also causes the app to be called "myappname" on the device home screen (under the icon). I know that has to able to be set differently. (I want "My App" to be displayed instead of "myappname"). Where do I set this?

like image 594
soleil Avatar asked Feb 06 '13 23:02

soleil


1 Answers

You set this as the "Product Name" in the Build Settings in Xcode. You want to set your bundle identifier in the info.plist file for your app.

The bundle identifier in the Info.plist can contain placeholder variables such as ${PRODUCT_NAME}. These placeholder variables are replaced with their values from the build settings when the app is compiled. Use plutil to see the compiled version of the Info.plist in your .app bundle.

like image 183
James Bedford Avatar answered Nov 15 '22 17:11

James Bedford