I am new to Phonegap. I have installed phonegap on my mac. I have installed latest xcode also. I am following instruction from http://docs.phonegap.com/en/3.4.0/guide_platf
Just execute the following command so that the head binary in /usr/bin/ gets preference over the script installed by XAMMP:
/usr/bin/
export PATH=/usr/bin/:$PATH