在 Xcode / Cocoa 中更改应用程序名称

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10674861/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 00:22:24  来源:igfitidea点击:

Change application name in Xcode / Cocoa

objective-cxcodecocoaxcode4rename

提问by Dr.Kameleon

What's the most efficient way to change my Mac OS Xapplication name in Xcode?

在 Xcode 中更改Mac OS X应用程序名称的最有效方法是什么?

(I know it's easy; I've done it in the past but I can't really remember how... :/)

(我知道这很容易;我过去做过,但我真的不记得是怎么做的……:/)

What I mean :

我的意思是 :

  • Let's say, I've got a Project/Applicationnamed oldName.
  • How do I change that to newName, so that this new name appears everywhere it should be? (Application name, bundle identifier, About dialog, Dock, etc)
  • 比方说,我有一个项目/应用程序命名oldName
  • 我如何将其更改为newName,以便这个新名称出现在它应该出现的任何地方?(应用程序名称、包标识符、关于对话框、Dock 等)

回答by Hackmodford

Click your project on the left at the top where it list all of the files associated with said project. Press return on your keyboard and simply rename it.

单击顶部左侧的项目,其中列出了与该项目关联的所有文件。按键盘上的回车键并简单地重命名。

回答by Mrunal

Only change bundle display namein your -info.plistfile.

只有改变束显示名称-info.plist文件。

It will update the title of the application written below the application icon. I guess this is what you required.

它将更新写在应用程序图标下方的应用程序的标题。我想这就是你所需要的。

回答by pna

sincerly I'll go with a grep on the terminal an change all the occurrences by hand.

真诚地,我将在终端上使用 grep 手动更改所有事件。

cd yourprojectdirectory

cd yourprojectdirectory

grep -r oldName .

grep -r oldName .