Today, I wanted to change Company Name entry in new XCode 4.2 project file templates. If it’s not set for the project by default Organization Name appears as
Earlier it used to be read from either
~/Library/Preferences/com.apple.Xcode.plist file Or using Address Book entry for company under current user logged in. So I was wondering why it doesn’t appear on new files I add to the project with XCode 4.2.
defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions -dict ORGANIZATIONNAME "CyberLMJ"
I had already added the ORGANIZATIONNAME key, but still had the default name in. Alternatively, I could have also changed the file templates in
/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/File Templates or
/Developer/Library/Xcode/Templates/File Templates. But it seem to be not really easy or useful, as I just needed to change company name entry only.
Finally, I found out there’s a very easy way hidden or unseen for me for some reason with new XCode, added Select the project and look for the right pane. View > Utilities > Show File Inspector [option + command + 1]. Organization entry is there available for each new project.