天天看點

Xcode6中如何修改檔案中自動建立的Created by和Copyright

在Xcode6建立問的時候,會自動生成注釋

//  Created byxxx on 15/7/10.

//  Copyright (c) 2015年 xxxx. All rights reserved.

xxx預設為電腦使用者名,那麼如何修改呢?方法如下:

右鍵Xcode圖示,顯示包内容 /Contents/Developer/Library/Xcode/Templates/File Templates/Source

C File.xctemplate

C++ File.xctemplate

Cocoa Class.xctemplate

Header File.xctemplate

Objective-C File.xctemplate

Objective-C new superclass.xctemplate

Playground with Platform Choice.xctemplate

Playground.xctemplate

Sources Folder Swift File.xctemplate

Swift File.xctemplate

Test Case Class.xctemplate

一般隻修改 Objective-C File.xctemplate/Empty File/___FILEBASENAME___.m 中

//

//  ___FILENAME___

//  ___PROJECTNAME___

//

//  Created by ___FULLUSERNAME___ on ___DATE___.

//___COPYRIGHT___

//

對應區域即可