xcode-select: error or directory path error in terminal

By | January 6, 2015

If you have installed Xcode and didn’t delete the previous ones then it will store xcode app is Xcode 2.app and Xcode 3.app and so on..

Now, when you will try to go to the directory such as /Applications/Xcode 4.app/Contents/Developer then terminal will give an error.

Try renaming your Xcode app without space e.g. Xcode4.app and now run the command !

 

 

  -r, –reset                 reset to the default command line tools path