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条回答
伤终究还是伤i
2楼-- · 2018-12-31 14:41

In Target>Build Setting>Product name field you can edit that field here.

查看更多
泛滥B
3楼-- · 2018-12-31 14:42

You can modify the Product Name without changing your Project Name (especially the directory).

Build Settings > search the keyword "product name" > update values

查看更多
永恒的永恒
4楼-- · 2018-12-31 14:42

Project Navigator>General>Display Name

enter image description here

查看更多
素衣白纱
5楼-- · 2018-12-31 14:43

In new versions of Xcode (Xcode 5 too) to change the name of the project follow this simple (detailed as possible) steps:

Note: In this example I'll change a hypothetical "Sample" name to a "Test" one.

  1. Click twice slowly on the project root in the project navigator and then it becomes editable.

    enter image description here

  2. Rename the project.

    enter image description here

  3. After pressing 'ENTER' the assistant will suggest you to automatically change all project-name-related entries and will allow you to de-select some of them, if you want.

    enter image description here

  4. Press 'RENAME' and Xcode will do the rest. In the meanwhile Xcode may ask you about the option of making a snapshot of the project (it is very recommendable to do so).

  5. In addition to renaming the project, you may want to rename the scheme so that it matches your new project name.

    enter image description here

  6. Repeat similar steps like 1 and 2, and press OK.

    enter image description here enter image description here

  7. That's it.

Another scenario ... The previous explanation was related to changing the project name, but chances are that you only need to change the display name that appears below the app icon in the home screen. These are the steps:

  1. In the "Supporting Files" group locate the info.plist (or related) file

  2. Locate the "Bundle display name" key and change the value to the new name.

    enter image description here

    enter image description here

  3. Delete the "old" app from the simulator or any other testing device.

  4. Clean and Rebuild your app again.

  5. That's it, you will now see the new app name in your home screen.

查看更多
谁念西风独自凉
6楼-- · 2018-12-31 14:43

In Xcode 3.2 just select the Project entry in the Groups & Files panel, then select the menu item Project -> Rename… Worked for me.

查看更多
人间绝色
7楼-- · 2018-12-31 14:45

Its very easy to change in XCode 8, enter the app name in the "Display Name" field in Project Target -> General Identity section.

enter image description here

查看更多
登录 后发表回答