xcode 更改“创建者”_username_
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26534592/
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
Change "Created by" _username_
提问by user023
How can I change the "Created by" when making a new file in Xcode 6.x? Im using Mac OSX 10.10 Yosemite
在 Xcode 6.x 中创建新文件时如何更改“创建者”?我使用的是 Mac OSX 10.10 Yosemite
The old way doesn't work:
旧方法不起作用:
- Updating the "current" Address Book name.
- defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions
{"FULLUSERNAME" = "Name Here";}
- 更新“当前”地址簿名称。
- 默认写 com.apple.Xcode PBXCustomTemplateMacroDefinitions
{"FULLUSERNAME" = "Name Here";}
回答by fengsheng
you can try:
你可以试试:
System Preferences --> Users & Groups --> choose current User --> unlock -->right tap current User --> Advanced option --> change you full name & above account name to your want, save ,that is ok!
系统偏好设置 --> 用户和组 --> 选择当前用户 --> 解锁 --> 右键点击当前用户 --> 高级选项 --> 将您的全名和以上帐户名更改为您想要的,保存,即可!
I get it from How does Xcode know who the the project was "created by"?@Juzzz 's answer.
我从Xcode 如何知道该项目是由谁“创建”的?@Juzzz 的回答。
hope that will help.
希望这会有所帮助。
回答by serhat sezer
In Xcode9 Apple added FILEHEADER
text macro to allow you to do just that.
在 Xcode9 中,Apple 添加了FILEHEADER
文本宏来让您做到这一点。