Since upgrading to Xcode 4 my company name is not appearing in any new files I create instead this a开发者_如何转开发ppears:
Copyright 2011 MyCompanyName. All rights reserved.
I have gone into Terminal and run the command and restarted Xcode but nothing happens:
defaults write com.apple.Xcode PBXCustomerTemplateMacroDefinitions'{"ORGANIZATIONNAME" = "MyCompany";}'
defaults write com.apple.Xcode PBXCustomerTemplateMacroDefinitions'{'ORGANIZATIONNAME' = "MyCompany";}'
Select the project in the navigator and open the Utility pane. The organization name is found there.
Set your company name in your adresbook. Restart Xcode 4. Works for Xcode 4 Build 4A304a
To update all existing files, simply:
- Press CMD+OPTION+SHIFT+F to open the Find and Replace.
- Type in your old company name and the new company name.
- Press Replace All
To change the default value of __MyCompanyName__ for new all new files created, you can do the following:
Select your project in Xcode (if the Inspector isn't visible, press CMD+1)
In the File Inspector along the right sidebar (if the File Inspector isn't visible, press CMD+OPTION+1), edit the Organization entry under the Project Document section:
All new classes that are added to the project will contain this new company name.
精彩评论