git push xcrun: error: active developer path does not exist
Asked Answered
C

5

24

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)

Changchangaris answered 28/8, 2014 at 2:40 Comment(2)
The message would suggest you should do something like xcode-select --switch /Applications/Xcode6-Beta6.app. Have you tried that?Farrow
If you just upgraded to mojave and got this, see apple.stackexchange.com/questions/254380/…Overfill
L
37

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.

Lox answered 6/10, 2014 at 0:50 Comment(0)
K
25

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 /
Kiker answered 26/10, 2014 at 12:23 Comment(4)
This helped me a lot as most other solutions I found were dependent on xcode still being on the system. I wanted to do it without xcodeSubdelirium
Recent update to El Capitan, never had XCode installed, executing this gave me: xcode-select: error: invalid developer directory '/'Ansilma
Update: running brew doctor multiple times helped - had to add /usr/local/sbin back to bash profile, had to rerun xcode-select --install. brew pointed out that El Capitan upgrade is known to bork this. :) All working again.Ansilma
This Solution helped me solve my problem for using git without Xcode in the system.Enzymolysis
S
15

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.

Sibert answered 15/4, 2016 at 6:56 Comment(0)
O
8

Even i also faced the same problem after updating my XCode to 6.3

Resolved my problem by Updating Command line tools

$ sudo xcode-select -switch /

Overdue answered 15/5, 2015 at 10:51 Comment(0)
P
1

Just try this in the terminal: sudo xcode-select --reset

Pearlpearla answered 7/12, 2022 at 1:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.