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

10,422

Solution 1

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.

Solution 2

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 /

Solution 3

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.

Solution 4

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 /

Share:
10,422

Related videos on Youtube

user02620
Author by

user02620

Updated on September 16, 2022

Comments

  • user02620
    user02620 9 months

    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)

  • Lezz
    Lezz about 7 years
    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 xcode
  • Zayne S Halsall
    Zayne S Halsall over 6 years
    Recent update to El Capitan, never had XCode installed, executing this gave me: xcode-select: error: invalid developer directory '/'
  • Zayne S Halsall
    Zayne S Halsall over 6 years
    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.
  • user2508975
    user2508975 over 5 years
    This Solution helped me solve my problem for using git without Xcode in the system.