Xcode 3 Template Location Clarification

In a previous post on Xcode 3′s new locations for project and file templates, I said project and file templates needed to be in the following locations:

Developer/Library/Xcode/Project Templates
Developer/Library/Xcode/File Templates
Those locations are for Apple’s templates. While it is technically possible to place your templates with Apple’s (I placed some of my SDL and OpenGL project templates with Apple’s project templates and had no problems), the Xcode 3 release notes say you’re supposed to place your templates in a different location. Project templates belong in the following location:
Library/Application Support/Developer/Shared/Xcode/Project Templates
File templates belong in the following location:
Library/Application Support/Developer/Shared/Xcode/File Templates
You’re going to have manually create all the folders after Application Support in the path.
If you use the paths I just mentioned, your project and file templates will be available for all users on your Mac and be available for use in both Xcode 3 and Xcode 2.5. If you want to restrict your templates to a specific version of Xcode, replace Shared with the Xcode version number. If you want only a single user to be able to use your templates, start the path with Username/Library.
Comments (1) | Trackback

One Response to “Xcode 3 Template Location Clarification”

  1. Quinn says:

    It might be more accurate to say that Apple’s templates are in “/Developer/Library/Xcode/{File|Project} Templates”. Or, in point of fact, replacing /Developer with the location where the developer tools are installed.

    Similarly, additional file or project templates can be added at the specified path in either /Library or ~/Library. (You do mention this briefly at the end, but starting a path with “Library” is pretty vague.)

    Thanks for the great post, you answered my question handily!

Leave a Reply

What is 9 + 9 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)
Powered by WordPress