When creating new source files xcode adds comments with your name and company name.
Where do I set my company name for xcode (not the project).
By default, Xcode inserts a company name something similar to the following in all new source files (.m .h etc):
Copyright (c) 2009 MyCompanyName. All rights reserved.
Changing this reference is as simple as entering the following from within a terminal window, replacing “YourNameHere” with the text you prefer. Also, make sure this is all entered on one line in the terminal.
defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{ORGANIZATIONNAME="YourNameHere";}'
OR
you could even go to ~/Library/Preferences and double-click com.apple.Xcode.plist and use the handy-dandy plist editor to set this and a whole bunch of other interesting defaults not covered by the Xcode or IB preference panels.
OR
@slf answer on this question shows an improved way to achieve this in Xcode 4 (Pasted below)
in the navigation pane (far left side), select the project (top item).
Expand the Utilities pane (at window top-right, far right button in the 3-button "View" group).
In the "Project Document" section is the "Organization" text field (File Inspection view, second section from top).
open up the xcode
Expand the Utilities pane (at window top-right, far right button in the 3-button "View" group).
In the "Project Document" section is the "Organization" text field (File Inspection view, second section from top).
there you can set the name.
If you want change __MyCompanyName__ in Xcode 4, you can try the following command.
defaults write com.apple.dt.Xcode PBXCustomTemplateMacroDefinitions '{ORGANIZATIONNAME="YourNameHere";}'
Carefully, this writes in the domain, com.apple.dt.Xcode, not com.apple.Xcode
I only test on Xcode 4 pre3 and it works.
In XCode 4, open up your project. Select the top-most item in the Project Navigator (MyProjectName, 1 target, iOS SDK 4.3 -- or whatever). Open up the file inspector (View->Utilities). In the Project Document section, you should see an "Organization" line. Edit that, and new files that you create will display the new organization name. This is a project setting, hence you'll have to do it for every project.
The Organization Name field is one that's shown in the New Project wizard. Its default value is the value that it was on the previously open project.
in Xcode 4 GM seed:
in the navigation pane (far left side), select the project (top item).
Expand the Utilities pane (at window top-right, far right button in the 3-button "View" group).
In the "Project Document" section is the "Organization" text field (File Inspection view, second section from top).
I have tested on the Xcode 4.2 Beta 7 (iOS 5.0).
It seems like the Xcode does not retrieve ORGANIZATIONNAME from neither
defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions
'{ORGANIZATIONNAME="YourNameHere";}'
nor
~/Library/Preferences/com.apple.Xcode.plist
The proper solution is to update your name & company name in Address Book.
Then you can try by creating any new Xcode project: