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:18

From Xcode 4.2 and onwards, you can use one more option. Just click once on .proj file name at the top in left navigation pane and it will be available for renaming.Rename it and the whole project will get renamed and not only the target.

Hope this helps

查看更多
不流泪的眼
3楼-- · 2018-12-31 14:18

A note on the bundle display name -- this is the right way to change the name in your app menu, but you'll likely have to reset content and settings in your iOS simulator before you see the change actually take effect.

查看更多
春风洒进眼中
4楼-- · 2018-12-31 14:20

There are

  • Product name ($(PRODUCT_NAME)): defaults to Target name. This is useful for scheme to select the right target
  • Bundle display name (CFBundleDisplayName): defaults to Product name. This is what is displayed to your iOS user
查看更多
高级女魔头
5楼-- · 2018-12-31 14:21
  1. Go to Targets in Xcode
  2. Get Info on your project's target (your current development name)
  3. Search for Product Name under Packaging. Change the value of what you want the your new project name to be.
查看更多
倾城一夜雪
6楼-- · 2018-12-31 14:22

This is how I changed in Xcode 4:

  1. Click on your Target file (First Main file of the application).
  2. Go to Build Settings.
  3. Scroll down you will find a bar called "Packaging".
  4. Under Packaging you will see Product Name, you can change project name.
查看更多
有味是清欢
7楼-- · 2018-12-31 14:22

If you want to change display name only then you can directly change from property file(plist) of app.

You can add a new row with the following key : bundle display name

Here is an example for this

enter image description here

When you use this the app name which you have given with this key will be display.

So you can do this simply.

查看更多
登录 后发表回答