How can I change the company name in the copyright template in Xcode 4?

XcodeXcode4Xcode TemplateCopyright Display

Xcode Problem Overview


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

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

In previous Xcode versions you could 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.

Xcode Solutions


Solution 1 - Xcode

Xcode 4 (and above) stores this on a per-project basis.

If you select the project in the Project Navigator (Cmd-1) and open the File Inspector (Cmd-Opt-1), you'll see a field for "Organization" under "Project Document".

Solution 2 - Xcode

You can change the copyright template in Xcode here:

Project Navigator -> File Inspector -> "Organization".

enter image description here

Solution 3 - Xcode

__MyCompanyName__ being ugly (or if you aren't coding for the company set up in your profile), let's change it.

  1. Click on your project root in the Project Navigator on the left

  2. Enable your Utilities view on the right while the project root is highlighted

  3. Select the File Inspector, while the Identity displays your Project Name.

  4. Under Project Document is a text field called Organization. That's the proper place to set the value you want.

Solution 4 - Xcode

You can find the template files in /Developer/Library/XCode/Templates/

Solution 5 - Xcode

Simply go to the Address Book application on your Mac and change the company name that is listed under your own address card.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionwoot586View Question on Stackoverflow
Solution 1 - Xcode一二三View Answer on Stackoverflow
Solution 2 - XcodeArgusView Answer on Stackoverflow
Solution 3 - XcodeKheldarView Answer on Stackoverflow
Solution 4 - XcodeMacmadeView Answer on Stackoverflow
Solution 5 - XcodeLiam McNultyView Answer on Stackoverflow