Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How do I install custom Xcode Templates?

I am using both Xcode v325 and Xcode 4. I want to have the same custom templates in both. I have read two different ways of doing this, but I think that both are assuming that only one version of Xcode is being used.

Method One - suggests installing the custom templates:
Home directory / Library / Developer / Xcode / Templates ƒ


Method Two:
Home directory / Library / Application Support / Developer / Shared / Xcode / User Templates ƒ


I am doing this because when I begin a New Project in Xcode v325 all of the custom library files are in red and I think that means they are missing. I installed them using the terminal and since I had no way of knowing where to add the templates, I had to rely on the recommended line to do this:
==

$ dropped folder here to get path to folder
$ ./install-templates.sh -f -u
==

but because I am using two versions of Xcode, I think (now) that it would make more sense to install them by hand ... IF I can figure out where to install them.

Thanks.

24" iMac, 17" i7 MacBook Pro, iPhone 4, Mac OS X (10.6.7)

Posted on Mar 31, 2011 3:04 PM

Reply
5 replies

Mar 31, 2011 3:18 PM in response to Phillip Anthony

For the sake of clarity, this is how I have my Xcode folders installed:

Xcode v325:
Mac HD / Developer / Applications / Xcode v325


Xcode 4
Mac HD / Xcode4 ƒ


I'm hoping that it will be possible to install the Custom Templates folder in one location and have both Xcode versions access them from there. I also hope there will not be a conflict because I ofter have both Xcode versions open at the same time.

Eventually, I hope to just run off of Xcode 4, but at the moment, I am not comfortable doing that.

Thanks again.

Mar 31, 2011 4:53 PM in response to Phillip Anthony

Your custom project templates for Xcode 3.2 should be in *~/Library/Application Support/Developer/Shared/Xcode*, following the same layout as the regular templates in /Developer/Library/Xcode/. Xcode 4 uses ~/Library/Developer/Xcode/Templates for the custom templates, but making them is quite a bit different - you might check out this article.

Mar 31, 2011 5:01 PM in response to Phillip Anthony

Xcode 4 changed the templates so you can't use the same set of templates in both Xcode 3.2 and Xcode 4. You will have to modify your old templates to work with Xcode 4.

As far as installing custom templates, the Method One you mentioned is the location to store custom templates for Xcode 4. Method Two is the location to store custom templates for Xcode 3.

Mar 31, 2011 5:04 PM in response to red_menace

I got impatient and used the terminal line(s) as directed at cocos2D and it worked. I have no idea where it placed the new templates but all templates show up in the New Project pan and work fine as well. I still get three errors using Xcode v325, but that is no the end of the planet for me. Earlier I was getting way over a hundred errors, but now at least, the files are all in black font.

I much prefer Xcode 4 and it compiled the same template with NO errors.

Thanks for the GREAT link. I have that BM'ed and will read it ASAP. Will it ever end? Probably not.

I appreciate the help.

How do I install custom Xcode Templates?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.