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

Also: your target name may be the same as your app name - note that changing the target name does not change the app name - only the change in the target properties described below - will change the app name.

查看更多
深知你不懂我心
3楼-- · 2018-12-31 14:22

Easiest way: select the TARGET name, double click on it, rename. You'll see your app's new name underneath the icon on your device or Simulator.

查看更多
浅入江南
4楼-- · 2018-12-31 14:23

Using Javier's approach to rename my app works perfectly. There is just one small bit missing in the end that I wanted add.

I still ended up getting a Mach-O Linker Error after a Clean and Rebuild. To resolve this; select yourProject(in the Project Navigator) > under Targets select yourProjectTests(the test target) > under the General tab, update the Host Application's value to the newly renamed project.

查看更多
千与千寻千般痛.
5楼-- · 2018-12-31 14:24

The best way I like in xcode5 is to change product name in building settings. Search "product name" in "building settings", and change it.

enter image description here

查看更多
与君花间醉酒
6楼-- · 2018-12-31 14:24

For changing application name only (that will display along with app icon) in xcode 4 or later:

Click on your project file icon from Groups & Files panel, choose Target -> Build Settings -> Packaging -> Product Name. Click on the row, a pop-up will come, type your new app name here.

For changing Project name only (that will display along with project icon) in xcode 4 or later:

Click on your project file icon from Groups & Files panel, choose Project(above targets) from right pane, just see at the far right pane(it will be visible only if you have enabled "Hide or show utilities").Look for project name.Edit it to new name you want to give your project.

Delete your app from simulator/device, clean and run.Changes should reflect.

That's it

查看更多
听够珍惜
7楼-- · 2018-12-31 14:25

You change the bundle display name in the info.plist. It's as simple as that.

Changing the 'bundle display name' (as opposed to 'bundle name') is the only way to include characters like '+' in your applications name. Including special characters in the project name will cause an error when uploading to the app store!

查看更多
登录 后发表回答