From 77e063d4a625f5c3befbdc182d51ced390f35948 Mon Sep 17 00:00:00 2001 From: Nick Morgan Date: Wed, 16 Dec 2020 21:33:20 -0500 Subject: [PATCH] Fixing xcode-select --switch command line option --- Library/Homebrew/brew.sh | 2 +- Library/Homebrew/extend/os/mac/diagnostic.rb | 2 +- Library/Homebrew/shims/mac/super/xcrun | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh index 871c08ab93..a1fa743417 100644 --- a/Library/Homebrew/brew.sh +++ b/Library/Homebrew/brew.sh @@ -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 diff --git a/Library/Homebrew/extend/os/mac/diagnostic.rb b/Library/Homebrew/extend/os/mac/diagnostic.rb index 025f234d64..81e78dbd26 100644 --- a/Library/Homebrew/extend/os/mac/diagnostic.rb +++ b/Library/Homebrew/extend/os/mac/diagnostic.rb @@ -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 diff --git a/Library/Homebrew/shims/mac/super/xcrun b/Library/Homebrew/shims/mac/super/xcrun index a74834fd66..9217ca4bbe 100755 --- a/Library/Homebrew/shims/mac/super/xcrun +++ b/Library/Homebrew/shims/mac/super/xcrun @@ -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