问题
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
)
回答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.
回答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 /
回答3:
Open xcode and navigate to preferences...
Select Location of xcode from command line tools.
After that perform command from terminal.
回答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 /
来源:https://stackoverflow.com/questions/25539890/git-push-xcrun-error-active-developer-path-does-not-exist