Text macros are symbols that are expanded in-place to the specified text. They are used in files and other places in Xcode, such as the header text for a new file or the project name. You can customize existing macros and add your own macros in a project, for all users of a project, or for all of Xcode. Customizing a macro requires two things:
- A plist named IDETemplateMacros.plist at an appropriate location.
- An entry in IDETemplateMacros.plist for the text macro.
- Xcode looks for the value of a text macro in the following locations and uses the first matching macro:
Project user data -> Project shared data -> Workspace user data -> Workspace shared data -> User Xcode data
Source: Ole Begemann