How to change copyright template in Xcode 4?

Does anyone know how to change copyright in templates for Xcode? That is, at the top of the new file, he writes:

// Copyright 2011 {Company Name}. All rights reserved. 

In previous versions of Xcode, you can change it by running the following command in the terminal:

 defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{"ORGANIZATIONNAME" = "{Company Name}";}' 

In Xcode 4.0, this method no longer works.

+83
xcode xcode4 copyright-display xcode-template
Apr 24 2018-11-11T00:
source share
4 answers

Xcode 4 (and above) saves this based on each project.

If you select a project in the Project Navigator (Cmd-1) and open the “File Inspector” (Cmd-Opt-1), you will see the “Organization” field in the “Project Document”.

+155
Apr 24 '11 at 11:20
source share

__MyCompanyName__ is ugly (or if you do not code the company created in your profile), let it change it.

  • Click on the project root directory in Project Navigator on the left

  • Turn on the Utilities view on the right when the project root is highlighted.

  • Select File Inspector , and Identity will display your Project Name .

  • The Project Document contains the Organization text box. This is the right place to set the desired value.

+26
Jul 13 '12 at 11:21
source share

Template files can be found in /Developer/Library/XCode/Templates/

+8
Apr 24 2018-11-11T00:
source share

Just go to the address book app on your Mac and change the company name that appears on your own address card.

+2
Jul 19 '12 at 23:38
source share



All Articles