Xcode - Change Company Name and Username

后端 未结 4 1134
滥情空心
滥情空心 2020-12-14 14:52

I want to change this:

//
//  ViewController.h
//  MyApp
//
//  Created by _username on 12-04-05.
//  Copyright _company_name. All rights reserved.
//
         


        
4条回答
  •  我在风中等你
    2020-12-14 15:30

    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: .xcodeproj/xcuserdata/[username].xcuserdatad/

    • Project shared data: .xcodeproj/xcshareddata/IDETemplateMacros.plist

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

    • Workspace shared data: .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

提交回复
热议问题