如何在构建设置中更改 Mac 应用程序的名称?

问题描述:

我即将向 Mac App Store 提交一个应用程序,但是我的应用程序名称与他们系统中的另一个应用程序冲突.因此,我选择了另一个名称,并尝试通过进入包装"部分和产品名称"行下的构建设置来更改应用程序的名称.我清理了所有目标并重新构建了应用程序,但菜单栏和包中显示的名称是旧名称.

I am about to submit an app to the Mac App Store, however the name of my application conflicts with another application in their system. So I picked another name and I tried to change the name of my application by going into the build settings under the "Packaging" section and "Product Name" row. I cleaned all targets and rebuilt the application, but the name displayed in the menu bar and bundle was the old name.

我错过了什么?如何更改应用程序的名称而不必重新创建另一个项目?

What I am missing? How do I change the name of an application without having to recreate another project?

非常感谢.

确保您正在编辑目标的产品名称而不是项目.所以菜单Project->Edit Active Target "targetname" 而不是Project->Edit Project Settings.或右键单击组列表中的目标并选择获取信息.

Make sure you are editing the Product Name of the target not the Project. So the menu Project->Edit Active Target "targetname" not Project->Edit Project Settings. Or right-click on the target in the group list and choose Get Info.

请注意,您必须编辑 MainMenu.xib 才能在关于"、退出"和帮助"菜单项中显示正确的应用名称.

Note that you will have to edit MainMenu.xib to show the correct app name in the About, Quit, and Help menu items.