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).
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 you can set the company name in your address card in the Mac OS X address book application. Worked for me (SL, Xcode 3.2.2)
Mine ORGANIZATIONNAME is set correctly in the plist file, but new projects are still showing MyCompanyName in Xcode 4 pre-2.
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.