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


当前回答

这是我在Xcode 4中改变它的方式:

单击目标文件(应用程序的第一个主文件)。 进入构建设置。 向下滚动,你会发现一个名为“包装”的栏。 在“包装”下,您将看到“产品名称”,您可以更改项目名称。

其他回答

如果您需要在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.

产品名称($(PRODUCT_NAME)):默认为目标名称。这有助于方案选择正确的目标 Bundle显示名称(CFBundleDisplayName):默认为Product name。这就是显示给iOS用户的内容

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

关于捆绑包显示名称的注意事项——这是在应用菜单中更改名称的正确方法,但在看到更改实际生效之前,你可能必须重置iOS模拟器中的内容和设置。

最简单的方法:选择TARGET名称,双击它,然后重命名。

你将在设备或模拟器的图标下方看到应用程序的新名称。