5 Replies Latest reply: Mar 31, 2011 5:01 PM by Mark Szymczyk
Phillip Anthony Level 1 Level 1 (60 points)
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.


24" iMac, 17" i7 MacBook Pro, iPhone 4, Mac OS X (10.6.7)
  • Phillip Anthony Level 1 Level 1 (60 points)
    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.
  • red_menace Level 6 Level 6 (14,865 points)
    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.
  • Mark Szymczyk Level 4 Level 4 (1,940 points)
    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.
  • Phillip Anthony Level 1 Level 1 (60 points)
    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.
  • Phillip Anthony Level 1 Level 1 (60 points)
    Yes, I was very much aware that Apple had changed the template format(?) for Xcode4. The cocos2D download came with separate sets for both versions of Xcode. I'm good to go now.

    Thanks for your help.