How to change the name of an iOS app?
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.
Targets
in Xcode
Get Info
on your project's target (your current development name) Product Name
under Packaging
. Change the value of what you want the your new project name to be. 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.
Click twice slowly on the project root in the project navigator and then it becomes editable.
Rename the project.
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.
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).
In addition to renaming the project, you may want to rename the scheme so that it matches your new project name.
Repeat similar steps like 1 and 2, and press OK.
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:
In the "Supporting Files" group locate the info.plist (or related) file
Locate the "Bundle display name" key and change the value to the new name.
Delete the "old" app from the simulator or any other testing device.
Clean and Rebuild your app again.
That's it, you will now see the new app name in your home screen.
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!
链接地址: http://www.djcxy.com/p/25882.html上一篇: 如何在不损失视网膜显示质量的情况下将UIView捕获到UIImage
下一篇: 如何更改iOS应用程序的名称?