前几天我用一个愚蠢的开发代码开始了一个iPhone项目,现在我想改变这个项目的名称,因为它快要完成了。我该怎么做呢?


当前回答

在Xcode 3.2中,只需要在Groups & Files面板中选择Project条目,然后选择菜单项Project→Rename…

其他回答

在Xcode 4中,在目标的“Build Settings”标签下搜索“Product Name”。

如果您需要在iPhone主屏幕上更改应用程序的名称,则需要在Target配置中进行,而不是在项目配置中进行。

Expand the Targets group in Xcode, and then single-click the item under that. It should share the name of your project, which is also the default name of the application that gets generated. Press Command + I to bring up the Info window, and then navigate to the Build tag. Set the Configuration drop-down to read All Configurations. Look for a setting called Product Name under the Packaging heading. Change that value to the name you want for your compiled applications and, in the immortal words of Bugs Bunny: Voilà! Do a clean and a build. Your application will take on the new name.

如果你只想改变显示名称,那么你可以直接在应用程序的属性文件(plist)中更改它。

您可以使用以下键添加一个新行

下面是一个例子:

当你使用这个应用程序名称时,你已经给了这个键,它将被显示。

所以你可以简单地做。

按照以下四个步骤维护序列号。在第四步中给出你想要的名字。

选择左边最上面的一行(包含项目名称、目标数量等)。 选择要重命名的目标。 再次单击目标的名称。 键入新名称。 按回车。