Even if you are not using Xcode for company purposes, it’s still irritating to see the “__MyCompanyName__” in the top header comments of all of the Xcode files in each and every project.
However, it’s easy enough to change the setting of the default company name in Xcode.
First of all, you need to start the ‘Terminal’ application. If you don’t have it on your dock bar, you can find it under Applications -> Utilities.
Then, type the following line into Terminal and press enter, making sure that you change Satosoft.com for your own name or company name!
defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions -dict ORGANIZATIONNAME "Satosoft.com"
It’s important that you put this all on one line and then press enter, otherwise it won’t work correctly!
Now, everytime you create a new project or add a new file, you can be happy in the knowledge that you’ve customised your companyname!
Enjoy
Cheers
Graham
Nice post! You can also do it from the address book.app. Just edit the company record in your card.
Cheers ^^
This works fine for files you generate in XCode. But what about files generated by IntBuilder? If you WRITE CLASS FILES from there, you still get the __MyCompanyName__, regardless of the two solutions above.
Never mind – the address-card entry works, but you have to RELOAD IB, before it’s recognized.