Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git push xcrun: error: active developer path does not exist

Tags:

git-push

xcrun

i recently deleted xcode 6 beta 3 and installed xcode 6 beta 6

when i entered gitpush in the terminal this happened

xcrun: error: active developer path ("/Applications/Xcode6-Beta3.app/Contents/Developer") does not exist, use xcode-select --switch path/to/Xcode.app to specify the Xcode that you wish to use for command line developer tools (or see man xcode-select)

like image 587
user02620 Avatar asked Aug 28 '14 02:08

user02620


3 Answers

Try pasting this in the terminal:

sudo xcode-select -switch /Applications/Xcode-Beta.app

It will update the path, for the new Xcode name.

Another alternative is just changing the app name back to Xcode, this, of course, considering you don't have the current one installed.

like image 190
vyudi Avatar answered Nov 16 '22 20:11

vyudi


Also, to remove dependency from XCode app you can manually install Command line developer tools and use the following command to update developer path:

sudo xcode-select -switch /
like image 33
TBA Avatar answered Nov 16 '22 21:11

TBA


Open xcode and navigate to preferences...

enter image description here

Select Location of xcode from command line tools.

enter image description here After that perform command from terminal.

like image 15
Amit Jagesha シ Avatar answered Nov 16 '22 20:11

Amit Jagesha シ