iPhone Developer Tips Visitor Stats: 126,691 Pageviews and 94,296 visitors in the past 30 days.
|
Although covered many other places on the net, I recently had to make a change to the name that Xcode automagically inserts when creating new files, so I figured I’d also pass on this tip to readers of this blog as well.
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";}'
Share with iOS Developers:
Comments
4 Responses to “Change Company Name in Xcode”
Leave Comment
Or go to AppleMenu > SystemPreferences > Accounts > Address Book Card and fill in your CompanyName.
Thanks, this has been driving me nuts.
Thanks for the tip! I drove myself crazy trying to figure that one out. (Yes, I’m a newbie.)
Florian says a nice way
i tried the followed way
defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions
‘{ORGANIZATIONNAME=”YourNameHere”;}’
but it will display “your company name + 2010″
it’s not a normal
do as Florian says
it will display 2010+yourCompanyName