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


当前回答

从Xcode 4.2开始,你可以多使用一个选项。 只需单击左侧导航窗格顶部的.proj文件名,它就可以进行重命名。重命名它,整个项目都会重命名,而不仅仅是目标。

其他回答

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

使用目标→构建设置→产品名称。

在Xcode 8中很容易改变。在Project Target→General Identity部分的“Display name”字段中输入应用程序名称。

在Xcode 4中点击项目名称开始重命名。

项目导航器→常规→显示名称