It's a Good IDE for Python and Other Languages
I'm rather fond of Python as my language of choice for most projects, but I continue to wander, looking for an IDE I like. I've heard good things about XCode, and I may very well start having to use it for some projects done better in other languages?
Can XCode be used as an IDE for Python. I've found a few mentions online of PyObjC, but they're all at least an OS or so out of date, and somewhat cryptic as to whether or not this still works.
Any clues, pointers, etc? Can it be used with other Python installs besides Apple's, like say the Enthought distribution?
Xcode is a really nice IDE for Python, you just have to do a few things to make it work with Python. The main advantage to using Xcode is that it works with pretty much any programming language, which is important because it prevents you from having to find a different IDE for each new programming language that you learn. I'm not sure, but I think you might be able to use Xcode to create a binary program from your higher-level language code(like C++,Java and Python).
Here are the steps for using Python in Xcode:
1. Open Xcode
2. Create a new project
3. In the template selection box, choose External Build System.
4. In the next box, type in a name, company name and Build System. The build system will be usr/bin/python
5. Click on the name of your program and click on Edit Scheme.*
6. In the Info tab of Run, set the executable to python, which can be found in usr/bin/python.*Next, for Debugger, select none.
7. Move over to the Arguments tab. Click on the plus button to add a new argument. Type in the name of the program that youll write.
8. Click on OK.
9. Right click on your project and click on New File.
10. A file template selection window will appear. From here, click on empty and name the file, but make sure to use the same name that you used for your new argument in step 7 Then click on OK. Here, youll type in your program.
11. Click on Edit Scheme. In the options tab of Run, check the box that says Use custom working directory. From there, you go through the file path and show Xcode where your Python program is. Click on Okay.*
12. Now, your program will run in Xcode.