Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Where does Xcode get "My" Copyright info from?

When Xcode creates a project, for example:

Xcode -> New Project... -> iPhone Application -> Window-based Application

If I look at the generaged main.m, the Copyright notice has the wrong information. It has the name of a company I no longer work for.

So does anyone know where this information is stored, so I can change it.

I have looked at the Xcode preferences, and I've tried doing some Unix side searches on plists. I've tried making sure my Address Book entry no longer contains my old company's name. I've tried looking at my System Preferneces -> Account information.

Obviously, I have not looked in the right place yet, and I'm hoping someone here knows where this information is stored, so that I can change it.

Thanks.

MacBook, iMac/i7, PowerMac/G5, Mac mini, iBook/G4, MacBook Pro, iMac/G4, Mac OS X (10.5.8), iPod Touch

Posted on Mar 6, 2010 9:04 PM

Reply
Question marked as Best reply

Posted on Mar 6, 2010 9:39 PM

The first place Xcode looks is in its preferences plist file. If it does not find an entry there, it looks in your AddressBook. If both are set, the plist file wins out.

By default, the ORGANIZATIONNAME entry in the plist file is not set.


# Read the default value
defaults read com.apple.Xcode PBXCustomTemplateMacroDefinitions -dict ORGANIZATIONNAME
# Set the default value
defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions -dict ORGANIZATIONNAME "Your Company Name"
3 replies
Question marked as Best reply

Mar 6, 2010 9:39 PM in response to BobHarris

The first place Xcode looks is in its preferences plist file. If it does not find an entry there, it looks in your AddressBook. If both are set, the plist file wins out.

By default, the ORGANIZATIONNAME entry in the plist file is not set.


# Read the default value
defaults read com.apple.Xcode PBXCustomTemplateMacroDefinitions -dict ORGANIZATIONNAME
# Set the default value
defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions -dict ORGANIZATIONNAME "Your Company Name"

Mar 7, 2010 7:28 AM in response to Craig.Williams

My address book was it. I thought I had fixed that, but apparently I oops!

The "defaults read" helped confirm that it was not part of Xcode, so I went back and double checked my Address book entry, and sure enough, there was my old company name attached to my default Address book entry.

I cleared it out, and now my Xcode Copyright is " _MyCompanyName_", which is goodness. I'll most likely use your suggested "defaults write" to set my preferred Copyright notice.

Thanks.

Where does Xcode get "My" Copyright info from?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.