Fixing xcode-select --switch command line option

This commit is contained in:
Nick Morgan 2020-12-16 21:33:20 -05:00
parent f070c35d28
commit 77e063d4a6
No known key found for this signature in database
GPG Key ID: B0C43868533AC3C6
3 changed files with 3 additions and 3 deletions

View File

@ -466,7 +466,7 @@ then
Your xcode-select path is currently set to '/'.
This causes the 'xcrun' tool to hang, and can render Homebrew unusable.
If you are using Xcode, you should:
sudo xcode-select -switch /Applications/Xcode.app
sudo xcode-select --switch /Applications/Xcode.app
Otherwise, you should:
sudo rm -rf /usr/share/xcode-select
EOS

View File

@ -241,7 +241,7 @@ module Homebrew
<<~EOS
Your Xcode is configured with an invalid path.
You should change it to the correct path:
sudo xcode-select -switch #{path}
sudo xcode-select --switch #{path}
EOS
end

View File

@ -61,6 +61,6 @@ Failed to execute $arg0 $@
Xcode and/or the CLT appear to be misconfigured. Try one or both of the following:
xcodebuild -license
sudo xcode-select -switch /path/to/Xcode.app
sudo xcode-select --switch /path/to/Xcode.app
"
exit 1