如何在Xcode 4中更改版权模板? [英] How can I change the copyright template in Xcode 4?

查看:107
本文介绍了如何在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中更改版权模板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆