There is another option if you are not familiar with UNIX or simply do not want to bind to system variables from the terminal. I had the same problem, and after some reading on the SO and apple developer pages, I decided to install the Command Line Tools for Xcode . This solved the problem.
Since the Xcode IDE from version 4.x is an .app package, and everything is stored inside this package, they added the ability to separately install command line tools so that you have command line tools inside usr / bin / path.
You can install the command line tools (as well as some other tools and documentation) on the Downloads tab of the Preferences window in Xcode (I have version 4.3) or on the Apple developer website.
source share