Saturday, May 24, 2008

How to Change __MyCompanyName__ of XCode, once and for all

If you're sick of getting __MyCompanyName__ automatically in copyright notice of all your XCode source files, You can set the XCode default company name for copyright notice as follows:

This is damn simple!

Go to /Applications/Utilities and open and enter the following code there:
defaults write PBXCustomTemplateMacroDefinitions '{ "ORGANIZATIONNAME" = "put_your_company_name_here";}'

defaults write PBXCustomTemplateMacroDefinitions '{ "ORGANIZATIONNAME" = "Raghavendra Nayak";}'

I have tried this with XCode 3.0 but this should work with older version also.

Fore more info visit this thread in Apple mailing list.

Technorati tags: , , .

1 comment:

Dave D. said...

FYI: in Xcode 3.1 the company name now comes from the current users Address Book card: more here