Fixing xcode-select --switch command line option
This commit is contained in:
parent
f070c35d28
commit
77e063d4a6
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user