change __MyCompanyName__ in xcode templates

January 4, 2010

For some strange reason there is no way to specify a company name in XCode.

Most source code templates include __MyCompanyName__ in the comments. To change it, open terminal and type this command replacing __MyCompanyName__ with whatever you want:

defaults write PBXCustomTemplateMacroDefinitions -dict ORGANIZATIONNAME "__MyCompanyName__"

For example:


Restart XCode. New files will be created with the company name you specified.


Not sure why you can’t specify this from XCode, but at least there is a way to change it. It would be nice for Apple to fix this, but I’d rather them work on doing away with the moronic single menu bar for all applications, adding a feature to XCode to create text macros, fixing Spaces so my application windows would open on the designated Space, removing the animation from switching between Spaces, … gosh I should start a list for them.


3 Responses to “change __MyCompanyName__ in xcode templates”

  1. Fill the me card in Address book. XCode automatically fill the template with your name and company name from me card.

  2. Nice post. All very good suggestions. OMG, I have to digging it immedidately.

  3. ThereĀ“s an option in XCode 3.2.3 to change the Organization Name. Go Project -> Edit Project Settings -> General Tab

Leave a Reply