How to change the name of an iOS app?

2018-12-31 13:52发布

I began an iPhone project the other day with a silly development code name, and now I want to change the name of the project since it's nearly finished.

But I'm not sure how to do this with Xcode, trying the obvious of changing the application's name in the info.plist file, causes the signing process to go wrong (I think...) and my app won't launch giving me a Launcher error.

I guess I could make a new project and copy paste everything over, but it seems so primitive that I'm hoping for a more civilized solution.

标签: ios
30条回答
闭嘴吧你
2楼-- · 2018-12-31 14:34

If you need to change the name of the Application as it appears on the iPhone's home screen, you need to do it in the Target configuration, not the project configuration.

  1. Expand the Targets group in Xcode, then single-click the item under that. It should share the name of your project, which is also the default name of the application that gets generated.

  2. Press command-I to bring up the Info window, then navigate to the Build tag.

  3. Set the Configuration drop-down to read All Configurations.

  4. Look for a setting called Product Name under the Packaging heading.

  5. Change that value to the name you want for your compiled applications and, in the immortal words of Bugs Bunny: Viola! Do a clean then build and your application will take on the new name.

查看更多
柔情千种
3楼-- · 2018-12-31 14:34

If you wanna change the name, that will be displayed on your screen, right under your icon, in Xcode 4, go to Targets->info->Bundle Display Name and change it to whatever you want.

查看更多
无色无味的生活
4楼-- · 2018-12-31 14:34
  1. Select the top most line to the left (with you project name, number of targets, etc).
  2. Select the target you wish to rename.
  3. Click on the name of the target again.
  4. Type the new name.
  5. Press enter.
查看更多
唯独是你
5楼-- · 2018-12-31 14:35

I think there is a bit of confusion:

  • you want to change the project name or
  • you want to change the App name on the iOS dashboard ?

usually is enough to change the latter, adding/modifying the BUNDLE DISLAY NAME key in plist.

Is better to leave project name untouched, but may be changed

Note that Bundle display Name CAN contain spaces and special chars, but project NOT. Doing so some cmd line tools will fails due to filename path rules.

And even more Bundle Display name can be localized.

So unless you are in early stage and need to change INTERNAL project name, go on using Bundle Display Name key.

查看更多
旧时光的记忆
6楼-- · 2018-12-31 14:36

For sake of gathering all relevant information in one place, here is the official answer to this question - and it is the only one that worked for me on Xcode 5.1.1

Just use the Identity and Type pane in Xcode.

Use Identity and Type pane in Xcode

查看更多
不再属于我。
7楼-- · 2018-12-31 14:38

1. Select Target

enter image description here

2. Select Info

enter image description here

3. Insert Bundle Display Name and set App Title

enter image description here

查看更多
登录 后发表回答