Where do I set my company name?

前端 未结 14 1472
情深已故
情深已故 2020-12-02 06:05

When creating new source files xcode adds comments with your name and company name.

Where do I set my company name for xcode (not the project).

相关标签:
14条回答
  • 2020-12-02 06:59

    It looks like the final version of Xcode 4 is not respecting the ORGANIZATIONNAME setting (either the old one, or the new one with com.apple.dt.Xcode. This sucks for me, because I have my company name in my address card, but I'm not doing Xcode work for my company. Thus, I don't want my actual company name to get inserted in my source files. I want the value I set for ORGANIZATIONNAME.

    Update: It looks like it partially works. I had shutdown Xcode before setting the value, then I restarted it, and created a new project. I saw that it was still using my company name from my Address Book card, and not ORGANIZATIONNAME. But then I created some new files in the project (File>New File...) and when they were created, they DID have the value from ORGANIZATIONAME. So, it looks like the code there is at least two bits of code that fill in the file template with the company name, and they are pulling from different locations.

    0 讨论(0)
  • 2020-12-02 07:02

    Adding to what SLF wrote above:

    in Xcode 4 GM seed:

    in the navigation pane (far left side), select the project (top item).

    Expand the Utilities pane (at window top-right, far right button in the 3-button "View" group).

    In the "Project Document" section is the "Organization" text field (File Inspection view, second section from top).

    But there is a small catch:

    Changing the Organization name as SLF described didn't set the project file as modified and no changes where saved.

    You need to make a small change to the project, like adding a group after you change the organization name, this will cause Xcode 4 to save the file.

    Also if you are working on a workspace, you need to make the change for each project.

    Tested at XCode 4.0.2

    0 讨论(0)
提交回复
热议问题