Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to set my xcode path

Tags:

xcode

ios

I am trying to convince my computer that I have development tools installed and when I type the command "xcode-select --install" i receive the following and was wondering where to set the path?

xcode-select: Report or change the path to the active Xcode installation for this machine.

Usage: xcode-select --print-path Prints the path of the active Xcode folder or: xcode-select --switch Sets the path for the active Xcode folder or: xcode-select --version Prints the version of xcode-select"

Thanks!

like image 231
jwaltz Avatar asked Dec 09 '22 06:12

jwaltz


1 Answers

You'd have to set the path to "Xcode.app/Contents/Developer" directory (where xcode has been installed)

$ xcode-select --switch /Applications/Xcode.app/Contents/Developer

This requires root permissions.

like image 160
talking penguin Avatar answered Dec 11 '22 12:12

talking penguin