如何更改 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 :(
大约一年之前 回复
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
接近 10 年之前 回复
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
接近 6 年之前 回复
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)
接近 10 年之前 回复
weixin_41568127
?yb? I had to quit XCode and delete my build directory before it would take for me.
大约 10 年之前 回复

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/…
接近 4 年之前 回复
csdnceshi68
local-host Does this work in Xcode 7?
接近 4 年之前 回复
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
接近 7 年之前 回复

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.
接近 5 年之前 回复
csdnceshi60
℡Wang Yan ...and 118 other people apparently!
接近 5 年之前 回复
weixin_41568196
撒拉嘿哟木头 This is a bad answer, if you do that your test project won't run
5 年多之前 回复

1. Select Target

enter image description here

2. Select Info

enter image description here

3. Insert Bundle Display Name and set App Title

enter image description here

csdnceshi68
local-host The best solution if you just need to update the icon name.
接近 5 年之前 回复
csdnceshi58
Didn"t forge This is the only solution that doesn't mess up with other file names and identifiers, and mostly - doesn't change the Bundle Identifier - which is essential if you already have an app id...
5 年多之前 回复

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

csdnceshi67
bug^君 That was easy...
接近 9 年之前 回复

This is how I changed in Xcode 4:

  1. Click on your Target file (First Main file of the application).
  2. Go to Build Settings.
  3. Scroll down you will find a bar called "Packaging".
  4. Under Packaging you will see Product Name, you can change project name.
csdnceshi54
hurriedly% This works, but it also changes the deployed app name (any existing installs won't get "upgraded", it will be a second app). Changing the "bundle display name" as per @CodeHunter's answer is nicer
接近 5 年之前 回复

If you want to change display name only then you can directly change from property file(plist) of app.

You can add a new row with the following key : bundle display name

Here is an example for this

enter image description here

When you use this the app name which you have given with this key will be display.

So you can do this simply.

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

enter image description here

weixin_41568183
零零乙 Great answer! works fine!
2 年多之前 回复
weixin_41568134
MAO-EYE Works for Xcode 8 as well.
接近 3 年之前 回复

From Xcode 4.2 and onwards, you can use one more option. Just click once on .proj file name at the top in left navigation pane and it will be available for renaming.Rename it and the whole project will get renamed and not only the target.

Hope this helps

共30条数据 1 3 尾页
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
ios6设置应用程序图标
-
iOS闹钟程序实现的过程
-
实现iOS闹钟程序的问题
-
iOS怎样获取应用程序通知
-
ios应用程序运行报错请教大神求解
-
iOS应用程序,线上闪退,真机和模拟器都没问题
-
IOS的蓝牙编程用swift语言开发外围应用程序
-
iOS应用发布到Apple Store的流程及注意事项
-
提交IOS应用更新时遇到的错误提示!ERROR ITMS-90186/90062
-
在其他应用中怎么检测qq的版本好或者是不是最新版本 IOS
-
ios 公司证书能不能 实现通过在AppStore,在IOS设备上直接安装应用程序?
-
phonegap开发的IOS应用无法提交到苹果商店
-
ios应用内付费,消耗性项目
-
iOS 9之后如何监控程序的进程
-
《求助》------ iOS 如何在程序关闭的时候移除所有本地通知
-
可以用visual studio2015开发iOS应用吗?
-
iOS开发 怎么导出应用的实时log
-
ios 企业账号发布的应用 出现 “无法下载应用程序 此时无法安装xxx"
-
ios SBAppTags 隐藏应用图标
-
iOS应用开发的打包问题
-
程序员实用工具网站
目录 1、搜索引擎 2、PPT 3、图片操作 4、文件共享 5、应届生招聘 6、程序员面试题库 7、办公、开发软件 8、高清图片、视频素材网站 9、项目开源 10、在线工具宝典大全 程序员开发需要具备良好的信息检索能力,为了备忘(收藏夹真是满了),将开发过程中常用的网站进行整理。 1、搜索引擎 1.1、秘迹搜索 一款无敌有良心、无敌安全的搜索引擎,不会收集私人信息,保...
程序员真是太太太太太有趣了!!!
网络上虽然已经有了很多关于程序员的话题,但大部分人对这个群体还是很陌生。我们在谈论程序员的时候,究竟该聊些什么呢?各位程序员大佬们,请让我听到你们的声音!不管你是前端开发...
1行Python代码制作动态二维码
目录 1、普通二维码 2、艺术二维码 3、动态二维码 在GitHub上发现了一个比较有意思的项目,只需要一行Python代码就可以快捷方便生成普通二维码、艺术二维码(黑白/彩色)和动态GIF二维码。 GitHub网站参见:https://github.com/sylnsfar/qrcode 用法比较简单,直接通过pip安装即可。 pip3 install myqr 安装过程如下所...
全球最厉害的 14 位程序员!
来源 | ITWorld 整理自网络全球最厉害的 14 位程序员是谁?今天就让我们一起来了解一下吧,排名不分先后。01. Jon Skeet个人名望:程序技术问答网站 S...
从入门到精通,Java学习路线导航
引言 最近也有很多人来向我"请教",他们大都是一些刚入门的新手,还不了解这个行业,也不知道从何学起,开始的时候非常迷茫,实在是每天回复很多人也很麻烦,所以在这里统一作个回复吧。 Java学习路线 当然,这里我只是说Java学习路线,因为自己就是学Java的,对Java理当很熟悉,对于其它方面,我也不是很了解。 基础阶段 首先是基础阶段,在基础阶段,我们必须掌握Java基础,Mysql数据库,Ora...
我花了一夜用数据结构给女朋友写个H5走迷宫游戏
起因 又到深夜了,我按照以往在csdn和公众号写着数据结构!这占用了我大量的时间!我的超越妹妹严重缺乏陪伴而 怨气满满! 而女朋友时常埋怨,认为数据结构这么抽象难懂的东西没啥作用,常会问道:天天写这玩意,有啥作用。而我答道:能干事情多了,比如写个迷宫小游戏啥的! 当我码完字准备睡觉时:写不好别睡觉! 分析 如果用数据结构与算法造出东西来呢? ...
别再翻了,面试二叉树看这 11 个就够了~
写在前边 数据结构与算法: 不知道你有没有这种困惑,虽然刷了很多算法题,当我去面试的时候,面试官让你手写一个算法,可能你对此算法很熟悉,知道实现思路,但是总是不知道该在什么地方写,而且很多边界条件想不全面,一紧张,代码写的乱七八糟。如果遇到没有做过的算法题,思路也不知道从何寻找。面试吃了亏之后,我就慢慢的做出总结,开始分类的把数据结构所有的题型和解题思路每周刷题做出的系统性总结写在了 Github...
接班马云的为何是张勇?
上海人、职业经理人、CFO 背景,集齐马云三大不喜欢的张勇怎么就成了阿里接班人? 作者|王琳 本文经授权转载自燃财经(ID:rancaijing) 9月10日,张勇转正了,他由阿里巴巴董事局候任主席正式成为阿里巴巴董事局主席,这也意味着阿里巴巴将正式开启“逍遥子时代”。 从2015年接任CEO开始,张勇已经将阿里巴巴股价拉升了超过200%。但和马云强大的个人光环比,张勇显得尤其...
什么是大公司病(太形象了)
点击蓝色“五分钟学算法”关注我哟加个“星标”,天天中午 12:15,一起学算法作者 | 南之鱼来源 | 芝麻观点(chinamkt)所谓大企业病,一般都具有机构臃肿、多重...
让程序员崩溃的瞬间(非程序员勿入)
今天给大家带来点快乐,程序员才能看懂。 来源:https://zhuanlan.zhihu.com/p/47066521 1. 公司实习生找 Bug 2.在调试时,将断点设置在错误的位置 3.当我有一个很棒的调试想法时 4.偶然间看到自己多年前写的代码 5.当我第一次启动我的单元测试时 ...
离职了
这是我毕业后的第一份工作...面试时,HR小姐姐告诉我... 然鹅...我入职之后才发现:对标阿里的只有加班强度对标华为的只有狼性文化对标百度的,额,没有对...
iPhone 11 引领芯片新革命?
iPhone 11中的U1芯片开启了超宽带革命。 作者|Jason Snell 译者 |弯月,责编 | 郭芮 出品 | CSDN(ID:CSDNnews) 以下为译文: 苹果很喜欢讨论他们为iPhone设计的芯片,却不愿泄露任何尚未发布产品的消息。新的U1芯片正是如此,该芯片随着iPhone 11一起发布,但在近日的iPhone发布会上苹果却对该芯片只字未提。U1中嵌入了新...
如何在Windows中开启"上帝模式"
原文链接 : https://mp.weixin.qq.com/s?__biz=MzIwMjE1MjMyMw==&mid=2650202982&idx=1&sn=2c6c609ce06db1cee81abf2ba797be1b&chksm=8ee1438ab996ca9c2d0cd0f76426e92faa835beef20ae21b537c0867ec2773be...
分享靠写代码赚钱的一些门路
作者 mezod,译者 josephchang10如今,通过自己的代码去赚钱变得越来越简单,不过对很多人来说依然还是很难,因为他们不知道有哪些门路。今天给大家分享一个精彩...
失业42天,我废了
作者:子彧师兄https://www.jianshu.com/p/62590c1339f12019.6.5这天下午,公司以资金困难,亏损较大为理由将我们整个技术部裁掉,我...
技术人员要拿百万年薪,必须要经历这9个段位
很多人都问,技术人员如何成长,每个阶段又是怎样的,如何才能走出当前的迷茫,实现自我的突破。所以我结合我自己10多年的从业经验,总结了技术人员成长的9个段位,希望对大家的职...
8000字干货:那些很厉害的人是怎么构建知识体系的
本文约8000字,正常阅读需要15~20分钟。读完本文可以获得如下收益: 分辨知识和知识体系的差别 理解如何用八大问发现知识的连接点; 掌握致用类知识体系的构建方法; 能够应用甜蜜区模型找到特定领域来构建知识体系。 1. 知识体系?有必要吗? 小张准备通过跑步锻炼身体,可因为之前听说过小腿变粗、膝盖受伤、猝死等等与跑步有关的意外状况,有点担心自己会掉进各种坑里,就在微信上问朋友圈一直晒跑步...
分布式、多线程、高并发都不懂,拿什么去跳槽
当提起这三个词的时候,是不是很多人都认为分布式=高并发=多线程?当面试官问到高并发系统可以采用哪些手段来解决,或者被问到分布式系统如何解决一致性的问题,是不是一脸懵逼?确...
nginx学习,看这一篇就够了:下载、安装。使用:正向代理、反向代理、负载均衡。常用命令和配置文件
文章目录前言一、nginx简介1. 什么是 nginx 和可以做什么事情2.Nginx 作为 web 服务器3. 正向代理4. 反向代理5. 动静分离6.动静分离二、Nginx 的安装三、 Nginx 的常用命令和配置文件四、 Nginx 配置实例 1 反向代理五、 Nginx 配置实例 2 负载均衡六、 Nginx 配置实例 3 动静分离七、 Nginx 的高可用集群 前言 一、nginx简介...
动画:用动画给面试官解释 TCP 三次握手过程
作者 | 小鹿 来源 | 公众号:小鹿动画学编程 写在前边 TCP 三次握手过程对于面试是必考的一个,所以不但要掌握 TCP 整个握手的过程,其中有些小细节也更受到面试官的青睐。 对于这部分掌握以及 TCP 的四次挥手,小鹿将会以动画的形式呈现给每个人,这样将复杂的知识简单化,理解起来也容易了很多,尤其对于一个初学者来说。 学习导图 一、TCP 是什么? TCP(Transmissio...
相关热词 c#sdf数据库连接 c# 使用配置文件 c#float 转int c#报警指示灯 c#复制二维数组 c# 歌词滚动 c#获取数据库一列数据 c#中parse用法 c#异步编程是什么意思 c#验证手机号正则