简体   繁体   English

如何在Xcode中重命名项目?

[英]How do I rename a project in Xcode?

i have a finished application written with objective c and I would like to rename the file. 我有一个用目标c编写的完成的应用程序,我想重命名该文件。 how do i do that? 我怎么做?

Xcode的最新版本在“项目”菜单中具有“重命名...”项。

Renaming a project has changed in Xcode 4+. 重命名项目已在Xcode 4+中更改。 (Kris Markel's answer above is for Xcode 3.2.x ) (Kris Markel的答案是针对Xcode 3.2.x的)

Follow these steps to rename your application in Xcode 4.0 or later: 请按照以下步骤在Xcode 4.0或更高版本中重命名您的应用程序:

  1. In Xcode, select your target under "Targets" in the project editor, then choose View > Utilities > Show File Inspector. 在Xcode中,在项目编辑器的“目标”下选择目标,然后选择“视图”>“实用程序”>“显示文件检查器”。
  2. Xcode opens the file inspector pane. Xcode打开文件检查器窗格。 Enter your application's new name in the Project Name field as shown in Figure 1, then hit the return key on your keyboard. 如图1所示,在Project Name字段中输入应用程序的新名称,然后按键盘上的Return键。
  3. Xcode displays a project-rename dialog that contains all the items that can be renamed in your project. Xcode显示一个项目重命名对话框,其中包含可以在项目中重命名的所有项目。 Leave your application selected in the dialog and deselect all other items as shown in Figure 2, then click Rename to perform the rename operation. 在对话框中将应用程序保持选中状态,然后取消选择所有其他项,如图2所示,然后单击“重命名”以执行重命名操作。

图1图2

Source: iOS Developer Library Technical Q&A QA1625 来源: iOS开发人员库技术问答QA1625

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

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