简体   繁体   English

Xcode - 如何更改应用程序/项目名称:我需要更新和检查什么?

[英]Xcode - How to change application/project name : what do I need to to update and check?

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访问路径,包标识符......但我害怕丢失一些东西。

It's really easy in Xcode 4. Simply double click (slowly) on your project name in the Navigator (the bar on the left). 在Xcode 4中非常简单。只需在导航器(左侧的栏)中双击(缓慢)项目名称即可。 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会要求您确认要更改的文件(通常,它将是所有必需的文件)。

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中更改“捆绑包显示名称”即可。

An advice : NEVER change 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. 即使XCode有一个有助于实现这一目标的功能,使用它可能会破坏你组织项目所需的所有辛苦工作,让许多脏东西无处不在,而不是改变所有需要改变的东西,这只是糟糕的。 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改变主要的东西,但是它已经让许多东西保持不变,或者在没有更新链接的情况下改变了东西,所以我不得不从头开始重建一个新项目让它再次编译。

If you just want to change the App name, select the project in xcode, select the app in TARGETS > YourAppOldName. 如果您只想更改App名称,请在xcode中选择项目,在TARGETS> YourAppOldName中选择应用程序。 Press enter, rename the OldName. 按Enter键,重命名OldName。 Save, compile. 保存,编译。 thats all! 就这样!

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 build ios,phonegap install ios或phonegap run ios

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM