Import an existing python project in Xcode

I have a python project that I did in the terminal using vim etc. I read that Xcode supports Python development because it supports SVN (which I use), but I cannot find documentation on how to start a new Xcode project from an existing code repository.

Other developers work on the project without using Xcode. They will not mind if I add a project file or something like that, but they will mind if I have to reorganize it all.

+6
python xcode macos
source share
4 answers

I don't think it's worth using Xcode for a clean python project. Although the Xcode editor does the syntax by highlighting Python code, Xcode gives you no other advantage for writing a pure-python application. In OS X, I would recommend TextMate as a text editor or Eclipse with PyDev as a more fully functional development environment.

+7
source share

I recommend not to do this. Creating groups (which look like folders) in Xcode does not actually create folders in the file system. This is detrimental to the hierarchy of modules.

In addition, the integration of SCM in Xcode is very awkward. After getting used to using Subversion with Eclipse, Xcode's Subversion support is hopelessly primitive. It’s practically easier to just run svn commands on the command line so that they understand what’s happening.

If you must use Xcode, use it to open individual py files. Use it as a slow, relatively featureless text editor.

If you want to use Xcode for SCM, take a look at the tutorial on using Xcode with Subversion .

+2
source share

There are no special features for working with Python projects without Cocoa with Xcode. Therefore, you probably just want to create a project with the "Empty project" template (in the "Other" section) and just drag it into the source code.

For convenience, you can configure the executable file in the project. You can do this with ctrl / right-click in the project source list and choose Add> New Custom Executable ... ". You can also add a target, although I'm not sure if you buy one.

+1
source share

All Articles