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

In Xcode 4 search for "Product Name" under "Build Settings" tab of the target.

查看更多
孤独寂梦人
3楼-- · 2018-12-31 14:27

Xcode 7/8? It's in the plist that your target uses

enter image description here

查看更多
ら面具成の殇う
4楼-- · 2018-12-31 14:29

I saw many ways to change your app name on homescreen, and i don't think the necessity of edit your .plist file or changing Build Settings of target is justified.

By default in Xcode 7.2 you even don't have 'bundle display name' in your plist file.

And by default, your 'Product name' in 'Build settings' tab of your target is equal to $(TARGET_NAME). IMHO it's convenient and didn't mean to change.

So you can simply change your Target name like hallski said in his comment for accepted answer. I made pic for it: enter image description here

查看更多
皆成旧梦
5楼-- · 2018-12-31 14:29

I am using this script after I rename my iOS Project. It helps to change the directories name and make the names in sync.

http://github.com/ytbryan/rename

NOTE: you will need to manually change the scheme's name.

查看更多
何处买醉
6楼-- · 2018-12-31 14:29

The link below works for Xcode 6, especially if you are getting an error after trying to rename your project. Basically, just try building a new scheme of your app.

https://stackoverflow.com/a/27572164/4114835

查看更多
只若初见
7楼-- · 2018-12-31 14:33

In Xcode 4 click on project name to start renaming.

查看更多
登录 后发表回答