Xcode - Change Company Name and Username

27,932

Solution 1

go to System preferences -> users and groups -> click on your username

On that page there should be a button saying Open... click that and change that record in your contacts. When you create a new class it should get the information from that record!

Solution 2

For changing author name in Xcode 6, just go to User & Groups in system preferences, right click current user (make sure permission is unlocked), select Advanced Options, change the "Full name" section.

Solution 3

For the User Name:

Open up the address book and go to your user account, and edit your name (the large, bold line at the top). (Address Book is by default the first app in your Applications folder.)

If you don't know which contact is your user account: Open up System Preferences. Go to Users & Groups (in the System row); your user account should already be selected. Click on the "Open..." button for the Address Book Card.

Changing your name in the Address Book won't change any already-created files; it will only affect new files that you create.

For the Company Name:

In Xcode 4, open up your project. Select the top-most item in the Project Navigator (MyProjectName, 1 target, iOS SDK 4.3 -- or whatever). Open up the file inspector (View->Utilities). In the Project Document section, you should see an "Organization" line. Edit that, and new files that you create will display the new organization name. This is a project setting, hence you'll have to do it for every project.

For new projects that you create, the Organization Name will be whatever the value was on the previously open project. (You can edit it when creating the new project.)

Solution 4

I know this question is quite old, but I have found a way to customize the template without changing the Full name. It basically consists on creating a custom plist file named IDETemplateMacros.plist, creating a new key named FILEHEADER under Root and putting the header text as the value. Then, you need to copy this header to one of the following locations:

  • Project user data: <ProjectName>.xcodeproj/xcuserdata/[username].xcuserdatad/

  • Project shared data: <ProjectName>.xcodeproj/xcshareddata/IDETemplateMacros.plist

  • Workspace user data: <WorkspaceName>.xcworkspace/xcuserdata/[username].xcuserdatad/

  • Workspace shared data: <WorkspaceName>.xcworkspace/xcshareddata/

  • User Xcode data: `~/Library/Developer/Xcode/UserData/``

I've tried copying it to my User Xcode data folder

More information can be found here

A full list of available macros can be found here or looking at the Xcode help

Share:
27,932
Jakub
Author by

Jakub

 engineer at No Frills

Updated on June 29, 2020

Comments