本文介绍了如何在 Xcode 4 的版权模板中更改公司名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如何更改 Xcode 模板中的版权?也就是说,在它写入的新文件的顶部:

Does anyone know how to change copyright in the templates for Xcode? That is, at the top of a new file it writes:

//  Copyright 2011 {Company Name}. All rights reserved.

在以前的 Xcode 版本中,您可以通过在终端中运行以下命令来更改它:

In previous Xcode versions you could change it by running the following command in the terminal:

defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{"ORGANIZATIONNAME" = "{Company Name}";}’

在 Xcode 4.0 中,此方法不再有效.

In Xcode 4.0 this method no longer works.

推荐答案

Xcode 4(及更高版本)在每个项目的基础上存储它.

Xcode 4 (and above) stores this on a per-project basis.

如果您在项目导航器 (Cmd-1) 中选择项目并打开文件检查器 (Cmd-Opt-1),您将在项目文档"下看到组织"字段.

If you select the project in the Project Navigator (Cmd-1) and open the File Inspector (Cmd-Opt-1), you'll see a field for "Organization" under "Project Document".

这篇关于如何在 Xcode 4 的版权模板中更改公司名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-27 16:35