Merge pull request #10041 from morganick/fix-typo-xcode-select

Documentation: Fixing xcode-select --switch command line option
This commit is contained in:
Mike McQuaid 2020-12-17 09:51:10 +00:00 committed by GitHub
commit 4f4f820ec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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