How does Xcode know who the project was “created by”?

前端 未结 6 799
长发绾君心
长发绾君心 2020-12-24 06:59

Whenever a new file is added to the project, Xcode adds the following lines of comments on top.

//  Created by {my name here} on 8/4/11.
//  Copyright 2011 _         


        
6条回答
  •  轮回少年
    2020-12-24 08:03

    In Address Book select yourself (or add yourself if you aren't there) and then go to Card -> Make This My Card in menu bar. The name, last name and company name from that card will be used to populate info in file headers when creating files from Xcode templates.

    Alternatively, you could set it using defaults via Terminal.app like this:

    defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{ORGANIZATIONNAME="ACME Inc.";}'
    

提交回复
热议问题