How to change the name of a Mac application in the build settings?

◇◆丶佛笑我妖孽 提交于 2020-01-02 05:59:31

问题


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?

Thanks a bunch.


回答1:


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.

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



来源:https://stackoverflow.com/questions/4420115/how-to-change-the-name-of-a-mac-application-in-the-build-settings

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!