Xcode: How To Replace 'Company Name' In Your Classes

One of the (many) things that has frazzled me about Xcode is the fact that you cannot change the 'company name' that appears in your classes directly through the Xcode UI.  So, here's a way that you can do it, though it takes a simple Terminal hacking to accomplish.  Like I just mentioned, pull up a Terminal window (Applications --> Utilities --> Terminal).  If I wanted the company name to be waynehartman.com, I would type the following command in the Terminal window:

defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{"ORGANIZATIONNAME" =  "waynehartman.com";}'

Go ahead and fire up Xcode, create a new class, and kapow! there it is.

Posted on Mar 22
Written by Wayne Hartman