views:

4826

answers:

5

Under xcode 3.2 my ObjectiveC + Python/Ruby projects can still be opened updated and compiled, but you cannot create new projects.

Given that all traces of ruby and python are missing from xcode 3.2 (ie create project and add new ruby/python file), is there an easy way to get the templates installed again?

I found some info about copying them into a folder somewhere, but I cant seem to get it to work, I suspect the folder location has changed for 3.2.

+2  A: 

Beginning with Xcode 3.2, Apple decided to not include project and file templates from 3rd party projects (including PyObjC, RubyCocoa or MacRuby). Since these template files were often updated more frequently than Xcode's release cycle, the templates shipped with Xcode were often out of date. Developers are now encouraged to install the templates directly from those projects' repositories. PyObjC templates are currently available only in SVN, though the PyObjC devs intend to make them available on the website "soon". This question details how to install new templates.

Barry Wark
+4  A: 

Here's the word on this from Chris Espinosa on the Xcode-Users mailing list:

We are deemphasizing Cocoa-Python and Cocoa-Ruby, though existing project will continue to build in Xcode. You can duplicate one of your existing projects and use the new Rename command to start a new project.

Bugs filed against the removal of these templates will be duplicated to No Python/Ruby templates in Xcode, and we'll use that bug to gauge the need for that support in the future.

I'd say file a bug report at https://bugreport.apple.com to voice your opinion on the subject.

Grant Limberg
A: 

The above coments were all good and helpful but didn't really help. Easiest thing I could find is to create an empty python/ruby project in xcode 3.1, then make copies of this project folder for every new project you work on.

When you open the new/blank project, 3.2 has a new feature that lets you rename the project so you can have proper names for eacn new project.

Jacob
+5  A: 

The folder for application templates in 3.2 is: /Developer/Library/Xcode/Project Templates/Application

Templates for python are at: http://svn.red-bean.com/pyobjc/trunk/pyobjc/pyobjc-xcode/Project%20Templates/

use:

$svn co <address of template you want> /Developer/Library/Xcode/Project Templates/Application/<Folder you want it in>

e.g.

$svn co http://svn.red-bean.com/pyobjc/trunk/pyobjc/pyobjc-xcode/Project%20Templates/Cocoa-Python%20Document-based%20Application/ /Developer/Library/Xcode/Project\ Templates/Application/Cocoa-Python\ NSDocument\ based\ Application
snowchicken
+1  A: 
  • Download the Cocoa-Ruby Templates to your '/Developer/Library/Xcode/Project Templates/Application/Ruby Application/' and '/Developer/Library/Xcode/File Templates/Ruby/' directories.
  • Install the latest version of Ruby Cocoa.

More info can be found on the Ruby Cocoa website.

papahabla