ios Xcode - 如何更改应用程序/项目名称:我需要更新和检查什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7998344/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode - How to change application/project name : what do I need to to update and check?
提问by Oliver
Using Xcode 4.2, if I want to change my application/project name (including the name of the project folder and subfolder that are auto created by Xcode), what are the different items I need to update to make the whole thing compile and work again like a charm ?
使用 Xcode 4.2,如果我想更改我的应用程序/项目名称(包括由 Xcode 自动创建的项目文件夹和子文件夹的名称),我需要更新哪些不同的项目才能使整个项目重新编译和工作像一个魅力?
I have noticed that I have to change the pch acces path, the bundle identifier, ... but I'm afraid of missing something.
我注意到我必须更改 pch acces 路径、包标识符,......但我害怕错过一些东西。
采纳答案by Oliver
An advice : NEVERchange the name of your project without having saved the whole thing before. Even if XCode has a feature that helps to do this, using it may destroy all your hard work to organise your project, letting many many dirty things everywhere, not changing everything that needs to be changed, it's just awfull. I've tried this some days ago on a just simple project, letting XCode change the main things, but it has let so many things unchanged, or changed things without updating links, so I've had to rebuild a new project from the beginning to make it compile again.
一个建议:永远不要在没有保存整个项目的情况下更改项目的名称。即使 XCode 有一个功能可以帮助做到这一点,但使用它可能会破坏你组织项目的所有辛勤工作,让许多肮脏的东西到处都是,而不是改变所有需要改变的东西,这太糟糕了。几天前我在一个简单的项目中尝试过这个,让 XCode 改变主要的东西,但它让很多东西没有改变,或者改变了东西而不更新链接,所以我不得不从头开始重建一个新项目让它再次编译。
回答by Keller
It's really easy in Xcode 4. Simply double click (slowly) on your project name in the Navigator (the bar on the left). When you change the name of your project, Xcode will ask you to confirm which files to change (generally, it will be all of the ones necessary).
在 Xcode 4 中这真的很容易。只需在导航器(左侧的栏)中双击(缓慢)您的项目名称。当您更改项目名称时,Xcode 会要求您确认要更改哪些文件(通常,它将是所有必需的文件)。
Alternately, if you simply want to change the name of your bundle (the name of your app as it appears in a users' home screen), you can just change your "Bundle Display Name" in your app plist.
或者,如果您只是想更改捆绑包的名称(显示在用户主屏幕中的应用程序名称),则只需更改应用程序 plist 中的“捆绑包显示名称”即可。
回答by sredni_vastar
If you just want to change the App name, select the project in xcode, select the app in TARGETS > YourAppOldName. Press enter, rename the OldName. Save, compile. thats all!
如果你只是想更改应用程序名称,在 xcode 中选择项目,在 TARGETS > YourAppOldName 中选择应用程序。按回车键,重命名 OldName。保存,编译。就这样!
回答by Prafull
Change the config.xml from the main www directory
从主 www 目录更改 config.xml
Here is the Name you want to change here is description of your application My team Now rebuild app with CLI
这是您要更改的名称 这是您的应用程序的描述 我的团队 现在使用 CLI 重建应用程序
phonegap build ios, phonegap install ios or phonegap run ios
phonegap 构建 ios,phonegap 安装 ios 或 phonegap 运行 ios