Xcode 5 - 如何更改版权格式

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20960748/
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 04:31:01  来源:igfitidea点击:

Xcode 5 - How to change copyright format

xcode

提问by Patricia

I have been looking for this answer and have found a lot of information for changing the company name, etc. But only one that answered how to completely reformat this block of information. Unfortunately the information is dated now and I cannot seem to get it to work. The files I tried are locked. Perhaps someone out there can tell me how to do this in Xcode 5?

我一直在寻找这个答案,并找到了很多关于更改公司名称等的信息。 但只有一个回答了如何完全重新格式化此信息块。不幸的是,这些信息现在已经过时了,我似乎无法让它发挥作用。我试过的文件被锁定了。也许有人可以告诉我如何在 Xcode 5 中做到这一点?

//
//  ___FILENAME___
//  ___PACKAGENAME___
//
//  Created by ___FULLUSERNAME___ on ___DATE___.
//  Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
//

I would like to change the format to Java Doc style. Something like this:

我想将格式更改为 Java Doc 样式。像这样的东西:

/**
 *  ___FILENAME___
 *  ___PACKAGENAME___
 *
 *  Created by ___FULLUSERNAME___ on ___DATE___.
 *  Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
 */

Yes, I saw this and referenced it in my original question.

是的,我看到了这个并在我的原始问题中引用了它。

That is the only one that came close by showing how to completely reformat this block. Only I think it may not work anymore. I tried to change the block but was locked out of editing.Perhaps there is something I am missing for Xcode 5 or Apple has added a new configuration for this? Still outstanding question waiting for an answer.

这是唯一一个通过展示如何完全重新格式化这个块而接近的。只有我认为它可能不再起作用了。我试图更改块,但被锁定无法编辑。也许我在 Xcode 5 中缺少某些东西,或者 Apple 为此添加了新配置?仍然悬而未决的问题等待答案。

采纳答案by Nathan Day

Don't edit the original, make a copy and put it in you own ~/Library folder in an equivalent path. Google Xcode templates to get more information.

不要编辑原始文件,复制一份并将其放在您自己的 ~/Library 文件夹中的等效路径中。Google Xcode 模板以获取更多信息。

回答by vp_gold

its simple in Xcode5

它在 Xcode5 中很简单

select project file from project navigator on the left side

从左侧的项目导航器中选择项目文件

then look at the right side utilities navigator, select file navigator

然后查看右侧的实用程序导航器,选择文件导航器

now 2nd group should be "project document"

现在第二组应该是“项目文件”

  • now overwrite "Organization" field
  • 现在覆盖“组织”字段

HTH

HTH

回答by bkopp

Just go to your LaunchScreen.xib and update the text of that copyright label to whatever you like...

只需转到您的 LaunchScreen.xib 并将该版权标签的文本更新为您喜欢的任何内容...