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

View File

@ -241,7 +241,7 @@ module Homebrew
<<~EOS <<~EOS
Your Xcode is configured with an invalid path. Your Xcode is configured with an invalid path.
You should change it to the correct path: You should change it to the correct path:
sudo xcode-select -switch #{path} sudo xcode-select --switch #{path}
EOS EOS
end 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: Xcode and/or the CLT appear to be misconfigured. Try one or both of the following:
xcodebuild -license xcodebuild -license
sudo xcode-select -switch /path/to/Xcode.app sudo xcode-select --switch /path/to/Xcode.app
" "
exit 1 exit 1