OK, I found python2.7 in /Library/Frameworks and I got rid of that. Now the Xcode template is working, but it's choosing python2.5.4

How do I control which python the Xcode template picks to run my code? I want it to use the Apple supplied 2.6 version.

On Jan 30, 2011, at 1:03 AM, Scott Harris wrote:

I think the issue is that something has changed in Xcode. I've explicitly made the main.m in the template call python2.6. 

It used to work with all the apple supplied stuff , so I don't want to install new stuff to confuse the debugging.

So it is running python 2.7 even though I explicitly put this in main.m:


Where is Xcode picking 2.7 up from?

On Jan 30, 2011, at 12:35 AM, Jair Gaxiola wrote:

On Sun, Jan 30, 2011 at 1:10 AM, Scott Harris <scottrharris@gmail.com> wrote:
Yes. pyobjc is found when I run python from the terminal. I'm using the Apple supplied pyobj and python.

Ok, check python version uses in terminal and xcode is the same. Try
install pyobjc from  easy_install.