如何更改 iOS 应用程序的名称?

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.

转载于:https://stackoverflow.com/questions/238980/how-to-change-the-name-of-an-ios-app

ios
csdnceshi59
ℙℕℤℝ Note: You can also change it in InfoPlist.strings so that it's localized for different languages.. Somehow no one posted an answer for that :(
11 个月之前 回复
csdnceshi70
笑故挽风 For rookies, the Xcode 5 answer is correct and way easier.
大约一年之前 回复
weixin_41568127
?yb? Change the name of the file, the very first in the list.
接近 5 年之前 回复
csdnceshi63
elliott.david Schmitt: The "Rename xCode Project" project fails when the plist file was renamed. It awaits the name Info.plist
大约 9 年之前 回复
csdnceshi80
胖鸭 this works for everything except renaming your plist file which yu can do manually.
大约 9 年之前 回复
weixin_41568126
乱世@小熊 Here's a free utility that does this and works well in my experience: change the name of an iPhone app
9 年多之前 回复
csdnceshi68
local-host There are times when the simple way still doesn't work (or there are echoes of old naming, etc.). I posted an article showing how to fix this by going into the xml of the project files manually here: change the name of an iPhone app
大约 10 年之前 回复
weixin_41568208
北城已荒凉 I've had to do this a few times. I use a tool called Rename Xcode Project 2.1.
10 年多之前 回复

30个回答

  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.
csdnceshi61
derek5. If you have localization, change the 'CFBundleDisplayName' key in InfoPlist.strings file.
一年多之前 回复
weixin_41568110
七度&光 Does not work. Why is this crap answer being protected?
大约 2 年之前 回复
csdnceshi55
~Onlooker In Xcode >= 8 just select target > General tab and write your app new name in "Display Name" Column. Done!!
2 年多之前 回复
csdnceshi53
Lotus@ Go to Targets / Build Settings / and look for Packaging to change Product Name. My app uses CloudKit and works fine (XCode 8, Swift 3)
接近 3 年之前 回复
csdnceshi72
谁还没个明天 (1000 yrs later... ) It still works in Xcode6!
大约 4 年之前 回复
csdnceshi74
7*4 After selecting Target. Find "Product Name" in "Packaging" under build settings.
4 年多之前 回复
csdnceshi52
妄徒之命 This is not a good answer, if you change the name in following this steps your unit test are not going to work!
5 年多之前 回复
csdnceshi79
python小菜 Updating bundle display name worked for me.
5 年多之前 回复
csdnceshi65
larry*wei there is a really good and updated answer for Xcode5 that worked like a charm, and i think it's the correct one check it out here stackoverflow.com/a/20418989/3027848
5 年多之前 回复
csdnceshi51
旧行李 If your app uses iCloud or Push Notifications or some other service, and you change Product Name you will also need to recreate Provisioning Profile for your app. But still, that is far better than renaming project folder in Finder and then re-include all files into Xcode :)
接近 6 年之前 回复
csdnceshi78
程序go In latest version of xcode I get error saying "unable to change app permission something after changing the name". All I did was uninstall the app and ran the ">" button again. It worked like magic
大约 6 年之前 回复
weixin_41568126
乱世@小熊 This needs updating, the given answer and associated comments are very confusing and don't seem to match what I see in Xcode 5.x
大约 6 年之前 回复
csdnceshi70
笑故挽风 After doing the mentioned steps I get a Code Sign error: The identity 'bla' doesn't match any identity in any profile.
大约 8 年之前 回复
csdnceshi60
℡Wang Yan In Xcode 4 you can simply double click the target name and change it directly in the target list.
8 年多之前 回复
csdnceshi54
hurriedly% Don't know why am I an exception but It didn't worked for me :(
8 年多之前 回复
csdnceshi63
elliott.david Example of above comment: 2010-07-03 10:56:35.129 OldAppName [45672.207] Test Message - Even though I have changed the Product_name, ".app" name Bundle name, etc... - Where does "Console" get this name, so I can truly change the app's name 100%?
大约 9 年之前 回复
csdnceshi68
local-host For anyone else that is a complete beginner, "Targets" is inside of the "Groups & Files" pane on the left, it has a red and white target sign next to it ;)
9 年多之前 回复
weixin_41568183
零零乙 Also, remember to change this in each of the configurations! (Debug, Release, Ad Hoc, App Store, etc)
9 年多之前 回复
weixin_41568127
?yb? I had to quit XCode and delete my build directory before it would take for me.
大约 10 年之前 回复

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

csdnceshi56
lrony* This would works great only with one issue, on your user's devices it will create a separate application with the new name instead of renaming the currently installed one they already have. Changing the 'bundle display name' in the project plist is the best way to do it.
4 年多之前 回复
csdnceshi60
℡Wang Yan ...and 118 other people apparently!
4 年多之前 回复
weixin_41568196
撒拉嘿哟木头 This is a bad answer, if you do that your test project won't run
5 年多之前 回复

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.

weixin_41568127
?yb? This should be the accepted answer now.
大约一年之前 回复
csdnceshi60
℡Wang Yan This should be a good route but will lead most devs to a lost day or two. It is such a nightmare, especially if you have a bunch of pods active. I'd highly suggest Sahil Kapoor's advice above, and REALLY REALLY ponder a project's name prior to starting.
一年多之前 回复
csdnceshi61
derek5. Important note: This won't rename some files and folders! You can use some sed magic to fix this afterward, though.
一年多之前 回复
csdnceshi50
三生石@ Thankyou so much for the detailed explanation! :)
一年多之前 回复
csdnceshi55
~Onlooker The "Another scenario" worked great! Two notes: 1. I had to add the "Bundle Display Name" in Info.plist as it was not there by default (Xcode 7). 2. If it doesn't appear to work, make sure you're changing the bundle display name in the Info.plist file in the "Supporting Files" folder like Javier said. I wasn't paying close enough attention and changed it in the ProjectName-Info.plist file that is right below the "Supporting Files" folder and wondered why nothing happened.
3 年多之前 回复
csdnceshi54
hurriedly% There is a bug with Xcode where the rename function doesn't rename shared internal framework properly. See here for more info: stackoverflow.com/questions/34749687/…
3 年多之前 回复
csdnceshi68
local-host Does this work in Xcode 7?
3 年多之前 回复
csdnceshi75
衫裤跑路 Had the same problem as @marcelsalathe, his fix solved the issue. Ideally this should be added to Javier Cadiz's answer.
大约 5 年之前 回复
weixin_41568174
from.. The scheme change didn't go smoothly for me: could only select My Mac after that. Thankfully the problem is easy to fix: stackoverflow.com/questions/8377970/…
5 年多之前 回复
csdnceshi76
斗士狗 The "Another scenario" part worked perfectly. Thanks!
5 年多之前 回复

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!

csdnceshi73
喵-见缝插针 If 'Bundle display name' is not shown, then simply add it.
4 年多之前 回复
csdnceshi63
elliott.david This is by far the superior solution! JUST changes the name under the icon, and not bundle identifiers which mess up provisioning profiles
接近 6 年之前 回复
csdnceshi69
YaoRaoLov This changes the app name displayed under the icon without the hassle of changing the app id and provisioning profiles. Thanks. Accepted answer no longer applies (as I understand it).
大约 6 年之前 回复
csdnceshi70
笑故挽风 i had to change the product name in info plist and also rename the target name. Then I also had to clean build directory (press and hold options key while traversing to xcode Product menu and there will be an option to clean build directory).
6 年多之前 回复
weixin_41568127
?yb? this is better than changing the target name as it avoids conflict and mess-ups in game engines
6 年多之前 回复

If you wanna change the name, that will be displayed on your screen, right under your icon, in Xcode 4, go to Targets->info->Bundle Display Name and change it to whatever you want.

For sake of gathering all relevant information in one place, here is the official answer to this question - and it is the only one that worked for me on Xcode 5.1.1

Just use the Identity and Type pane in Xcode.

Use Identity and Type pane in Xcode

Project Navigator>General>Display Name

enter image description here

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.

csdnceshi63
elliott.david that's wired, we've done that so many times since iOS 7.0
3 年多之前 回复
weixin_41568208
北城已荒凉 on XCode 7 gets error trying to run on ios7 :(
3 年多之前 回复

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.

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

共30条数据 1 3 尾页
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
如何更改应用程序的名称?
需要更改应用程序的名称,是不是只需要更改AndroidManifest.xml文件中的android:name?我试了试这么改,发现错误了,请问怎么改?
如何更改工程(应用程序)的名称
就是当初开发程序时,选择的工程名(比如XYZ)。rnrn以后生成的exe文件(release目录下)和对应的源文件夹名称都是XYZ。rnrn现在想改成其他的名称,怎么改?rnrn还有我用的是SDI,所以,在XYZView.cpp中,这样写到:rnrnvoid CXYZView::OnDraw(CDC* pDC)rnrn// other codesrnCXYZDoc* pDoc = GetDocument();rnASSERT_VALID(pDoc);rn// strTitle is title infosrnGetDocument()->SetTitle(strTitle);rn// other codesrnrnrn目的是显示strTitle的内容在程序的标题栏,内容是可以显示,但是在内容的后面,总是有" - XYZ"rnrn请问怎样可以把这个字串去掉,只显示我希望的strTitle的内容?rnrn
怎么更改应用程序的名称?
请问怎么更改生成的应用程序名称?
iOS国际化应用程序显示名称
1.国际化:应用程序的功能和代码设计在不同地区运行时,应用程序本身做内部代码的改变和修改,简化了不同版本的生产  2.本地化:  具有国际化功能的应用程序,回为用户提供本地语言的界面和资源 。。  我的理解:国际化是本地化的基础; 一:国际化应用名称显示名字:  然后内容这篇博客很清楚 http://www.jianshu.com/p/63a1c1a40b93
如何更改文件的名称
c:\\temp下有一个文件,名称为aa.jpg_tmp,现在要将它更名为aa.jpg(即将最后的_tmp去除即可)。c#怎样写?
如何更改实例名称
比如:rn把 WIN-ULU6C6BLQBY\SQL2008rn改成 WIN-ULU6C6BLQBY\MSSQL2008rnrn谢谢。
如何更改博客的名称
第一步 第二步 最后一步
如何更改命名空间的名称?
我在.net中从其它项目copy了一些文件加到当前项目中,但是新加的文件的命名空间还是原来的,现在想改为现在的命名空间名称,不知如何修改。rn我在.cs文件中直接改,编辑时出错,请大侠们帮忙!
如何更改表格的名称?>
如何更改表格的名称?>
如何更改工程的名称??
以前的SDI程序是作为练习随便起的名字,后来越做越大,最终发展成了我要上交的东西,可是总不能用一个随便的名字,怎样将工程及其它相关的视图、文档等文件改成我要得名字呢??我曾经试着将所有相关的名称用“Replace”代换掉,可是好像编译不过,估计是有些文件代换不干净,好像是*.clw等文件,各位有什么好办法吗??
如何更改服务器名称?
服务管理器中 服务器名称是CJBrn而在企业管理器中却是(LOCAL)rn我请问如何将LOCAL改为CJB
如何更改主机名称
我想通过vb代码来更改计算机主机名称(即在win2k中更改"我的电脑"->"属性"->"网络标识";在xp中更改"我的电脑"->"属性"->"计算机名")。我通过api函数SetComputerName来操作,在重新启动计算机后,计算机主机名称并没有改变。请问各位大侠如何实现这个功能?
如何更改设备名称
请教rn如何通过编程把设备管理器里的设备名称改变成我想要的名字呢?rn100分求救!
如何更改数据库名称
我在安装SQLSERVER2000数据库时,建立一个数据库MYDB,后来我想把它更改为MYDB1rn我发现我不会了?请帮忙,马上给分
如何更改MySQL数据库名称?
站在巨人肩膀上学习与进步!!! 1.将此数据库导出为sql文件 2.打开sql文件,在文件里面更改库名。 当然也可以更改自增序号啦 文章很简单,但解决实际问题。 站在巨人肩膀上学习与进步!!! ...
如何修改应用程序的名称
app——>res——>values——>strings.xml
如何更改应用程序的图标?
我的代码写好了,并且编译成了EXE文件,可是该EXE文件的图标是VB默认的难看的图标。请问如何设定该EXE文件的图标?谢谢!
如何更改应用程序的窗口标题?
1.应用程序的窗口标题与Form1.caption是一回事吗?rnrn2.应用程序在运行过程中怎么更改自己的名字?rnrn
如何更改应用程序的标题
一般的应用程序标题都是:“无标题-AnyApp”,请问,如何更改标题栏的标题?
如何更改应用程序的图标
现有一个小的应用程序——只有一个.EXE的安装文件。rn想更换一下它的图标,使其安装后使用新的图标——不是安装完之后用“属性”-“更改图标”的办法来改,而是想永久的改变它,也就是说更改之后的任何重新安装都将使用新的图标,让原来的图标永远消失。rn请问有什么办法可以做到吗?
服务组的名称可否更改?如何更改!
rn 服务组的名称可否更改?如何更改!
Android studio如何更改应用程序的图标以及名称
如何在Android studio中更改应用程序的图标和名称是很多初学者遇到的问题之一,今天我就来给大家讲一下简单的步骤 1.    更改图标    首先选中我们需要更改的工程,然后new -->Image Asset     就来到了更改图标的页面         很多情况下,我们都是使用自己的图标,而非系统自带的,我们只需要选中Image单选框即可选择自己的...
C# 如何更改程序集名称
应用程序的 Assembly Name 属性确定经过编译的应用程序所使用的名称。 例如,将基于 Windows 的应用程序的 Assembly Name设置为“MyApplication”,会导致生成一个名为 MyApplication.exe 的可执行文件。 AssemblyName 的默认值是项目名称;可以在“项目设计器”的“应用程序”页中对其进行更改。 注意:虽然 Assembly Nam
如何更改RH9计算机的名称?
请问在Linux Red hat 9.0下,默认的计算机名称是localhost(通过window的网上邻居查看得之)?怎样更改为别的名称?
如何更改SQLServer的字段名称?
在Access中,使用AdoxrnobjCatalog.ActiveConnection = ConnrnobjCatalog.Tables("MyTable").Columns(OldName).Name =NewNamernrn就可以了,在SQLServer却不行,怎么能改动呢?rn
如何更改表的字段名称
我使用alter table tablename column fieldname to new fieldname rn不行啊
VC++6.0如何更改工程名称
用Vc++6.0做了个工程,向换个名字。我怎麽做呀??请朋友们帮忙呀。
请问如何更改服务器名称????
请问:rn在不重新做服务器的前提下,如何修改服务器名????rnrnrn另:可否修改域名??rnrn对服务器上现有的数据库是否有影响??
如何更改一个目录的名称???
重命名目录。rn
如何更改Myeclipse的项目部署名称
右键项目名—->Properties—->搜索Web 点击打开,在右边进行修改即可。图示:
如何更改sqlserver数据库名称
比如我的数库库名称为aaa,怎么样才能改成bbb呢
请问如何更改服务器的名称?
3x
水晶报表 报表名称 如何更改
我在项目使用了一张主报表和四个字报表rn每次打开主报表时,标题栏总是显示 "主报表",也不知道到该如何更改这三个字,rn我希望这张主报表的名称为"作业详细信息",大家帮忙 谢谢各位高手rnrn[img=http://C:\Documents and Settings\Administrator\桌面\农机调度\服务器代码\Server1\1111.bmp][/img]
如何更改项目的名称
rnrn在做准备工作的时候,尝试着写了一些代码。现在想在已有的代码的基础上继续编程序。可是为了规范化,想更改项目的名称,可是里面要改的地方太多了,有什么好方法啊?
命令提示符下如何更改文件夹的名称
各位大虾:rn 小弟弱问,在命令提示符下如何更改文件夹的名称 rnrnrn
如何更改服务器的名称?谢谢!
如何更改服务器的名称?谢谢!
请问如何更改目录名称?
我在Directroy类里没找到更改目录名的方法,请各位大侠给支个招,谢谢!
如何更改sql数据库的名称?
建立了一个数据库名称为aa 想改为bb 执行了rnexec sp_renamedb 'old_dbname','new_dbname' rnrngo rnrn名称是改了,但是备分后再在别的机子上还原还是提示还原为aa ,怎么解决?rn有什么办法能够使数据库备分在别的机子上还原成bb么?rnrn谢谢各位
如何得到前台应用程序的名称
小弟做了一个后台采集用户击键信息的程序,希望用它来采集用户在WORD下的信息。rn怎样才能知道用户正在WORD下工作呢?请教各位高手。谢谢。
如何更改应用程序加载基地址
应用程序的基地址默认都是:0x00400000 如果想更改这个基地址,可以更改链接选项,如下:
相关热词 c# stream 复制 android c# c#监测窗口句柄 c# md5 引用 c# 判断tabtip 自己写个浏览器程序c# c# 字符串变成整数数组 c#语言编程写出一个方法 c# 转盘抽奖 c#选中treeview