Ruby and Python Xcode 3.2 Templates

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

Given that all traces of ruby ​​and python are missing in xcode 3.2 (i.e. they create a project and add a new ruby ​​/ python file), is there an easy way to install the templates again?

I found some information about copying them to a folder somewhere, but I can’t make it work, I suspect that the folder location has changed to 3.2.

+6
python ruby xcode cocoa pyobjc
source share
5 answers

Folder for application templates in 3.2: / Developer / Library / Xcode / Project templates / Application

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

using:

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

eg.

 $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 
+6
source share

Here's a word about this from Chris Espinos on the Xcode-Users mailing list:

We will defocus Cocoa -Python and Cocoa -Ruby, although the existing project will continue to build in Xcode. You can duplicate one of the existing projects and use the new rename to start a new project.

Errors filed against uninstalling these templates will be duplicated no Python / Ruby templates in Xcode and we will use this error to evaluate the need for this support in the future.

I would call the error report file at https://bugreport.apple.com to give my opinion on this.

+5
source share

Starting with Xcode 3.2, Apple decided not to include project templates and files from third-party projects (including PyObjC, RubyCocoa, or MacRuby). Because these template files were often updated more often than the Xcode release cycle, the templates shipped with Xcode are often out of date. Developers are now prompted to install templates directly from the repositories of these projects. PyObjC templates are currently only available on SVN, although PyObjC developers intend to make them available on the website soon. This question asks how to install new templates.

+3
source share
  • Download Cocoa -Ruby Templates in your '/ Developer / Library / Xcode / Project Templates / Application / Ruby Application /' and '/ Developer / Library / Xcode / File Templates / Ruby /'.
  • Install the latest version of Ruby Cocoa .

More information can be found on the Ruby Cocoa website .

+1
source share

The above comments were good and helpful, but didn't really help. The simplest thing I could find was to create an empty python / ruby ​​project in xcode 3.1, then make copies of this project folder for each new project you are working on.

When you open a new / empty project, 3.2 has a new function that allows you to rename the project so that you can have your own names for the new project.

0
source share

All Articles