git push xcrun: error: active developer path does not exist
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...
Select Location of xcode from command line tools.
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 /
Related videos on Youtube

user02620
Updated on September 16, 2022Comments
-
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 seeman xcode-select
) -
Lezz about 7 yearsThis 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 over 6 yearsRecent update to El Capitan, never had XCode installed, executing this gave me:
xcode-select: error: invalid developer directory '/'
-
Zayne S Halsall over 6 yearsUpdate: running
brew doctor
multiple times helped - had to add /usr/local/sbin back to bash profile, had to rerunxcode-select --install
. brew pointed out that El Capitan upgrade is known to bork this. :) All working again. -
user2508975 over 5 yearsThis Solution helped me solve my problem for using git without Xcode in the system.