Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

change xcrun developer path

Tags:

xcode

How can I change the directory at which xcrun is pointing ? currently is pointing to

xcrun: Error: could not stat active Xcode path '/Volumes/Xcode/Xcode44-DP7.app/Contents/Developer'. (No such file or directory)

I need to change the location. Thank you.

like image 836
the Reverend Avatar asked Jul 12 '12 17:07

the Reverend


People also ask

How do I change my path in Xcode?

Click your Info. plist and go to your File Inspector . On Location row, change it to Relative to Project so you can get the path within your project and COPY that.

What is the Xcrun command?

xcrun provides a means to locate or invoke coexistence- and platform-aware developer tools from the command-line, without requiring users to modify makefiles or otherwise take inconvenient measures to support multiple Xcode toolchains.


2 Answers

Use xcode-select -switch to choose which version of Xcode you're using by default.

like image 41
Rob Napier Avatar answered Oct 05 '22 02:10

Rob Napier


sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer 
like image 182
Vaibhav Saran Avatar answered Oct 05 '22 04:10

Vaibhav Saran