如何在Xcode中重命名项目?

时间:2022-10-30 13:58:19

i have a finished application written with objective c and I would like to rename the file. how do i do that?

我有一个用目标c编写的完成的应用程序,我想重命名该文件。我怎么做?

2 个解决方案

#1


5  

Recent versions of Xcode have a "Rename..." item in the Project menu.

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

#2


2  

Renaming a project has changed in Xcode 4+. (Kris Markel's answer above is for Xcode 3.2.x )

在Xcode 4+中重命名项目已更改。 (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.
  2. 在Xcode中,在项目编辑器的“目标”下选择目标,然后选择“视图”>“实用程序”>“显示文件检查器”。

  3. Xcode opens the file inspector pane. Enter your application's new name in the Project Name field as shown in Figure 1, then hit the return key on your keyboard.
  4. Xcode打开文件检查器窗格。在Project Name字段中输入应用程序的新名称,如图1所示,然后单击键盘上的返回键。

  5. Xcode displays a project-rename dialog that contains all the items that can be renamed in your project. 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.
  6. Xcode显示项目重命名对话框,其中包含可在项目中重命名的所有项目。保持在对话框中选择应用程序并取消选择所有其他项目,如图2所示,然后单击重命名以执行重命名操作。

如何在Xcode中重命名项目?如何在Xcode中重命名项目?

Source: iOS Developer Library Technical Q&A QA1625

资料来源:iOS开发人员库技术问答QA1625

#1


5  

Recent versions of Xcode have a "Rename..." item in the Project menu.

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

#2


2  

Renaming a project has changed in Xcode 4+. (Kris Markel's answer above is for Xcode 3.2.x )

在Xcode 4+中重命名项目已更改。 (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.
  2. 在Xcode中,在项目编辑器的“目标”下选择目标,然后选择“视图”>“实用程序”>“显示文件检查器”。

  3. Xcode opens the file inspector pane. Enter your application's new name in the Project Name field as shown in Figure 1, then hit the return key on your keyboard.
  4. Xcode打开文件检查器窗格。在Project Name字段中输入应用程序的新名称,如图1所示,然后单击键盘上的返回键。

  5. Xcode displays a project-rename dialog that contains all the items that can be renamed in your project. 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.
  6. Xcode显示项目重命名对话框,其中包含可在项目中重命名的所有项目。保持在对话框中选择应用程序并取消选择所有其他项目,如图2所示,然后单击重命名以执行重命名操作。

如何在Xcode中重命名项目?如何在Xcode中重命名项目?

Source: iOS Developer Library Technical Q&A QA1625

资料来源:iOS开发人员库技术问答QA1625