

I tried by deleting the folder /Library/Developer/CommandLineTools and installing the Command Line Tools for Xcode 12.3 beta but still I am getting the same error.

usr/local/Homebrew/Library/Homebrew/version.rb:368:in `initialize': Version value must be a string got a NilClass () (TypeError) I installed the command line tools using the command xcode-select -installĪfter I run brew list, I get the following error ~ brew listġ1: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in `'ġ0: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in `require_relative'ĩ: from /usr/local/Homebrew/Library/Homebrew/global.rb:37:in `'Ĩ: from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'ħ: from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'Ħ: from /usr/local/Homebrew/Library/Homebrew/os.rb:3:in `'ĥ: from /usr/local/Homebrew/Library/Homebrew/os.rb:21:in `'Ĥ: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:58:in `prerelease?'ģ: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:in `version'Ģ: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:in `new'ġ: from /usr/local/Homebrew/Library/Homebrew/os/mac/version.rb:26:in `initialize' # Identify the correct update in the Software Update feed with "Command Line Tools" in the name for the OS version in question.Ĭmd_line_tools=$(softwareupdate -l | grep -E '\*.*Command Line Tools.*' | sed 's/\*.*\(Command Line Tools.I upgraded from Mohave to Big Sur and found that homebrew is not working any more. # before allowing the installation of the Xcode command line tools. # Create the placeholder file which is checked by the softwareupdate tool How To Set Up Your Mac for Homebrew Step 1 Check you have already Install the Xcode.

# Installing the latest Xcode command line tools on 10.9.x or higher # If OSX Version is 11.0 or higher, translate that into 10.16 or higher

# Apple approved way to get the currently logged in user (Thanks to Froger from and )ĬonsoleUser="$(/usr/bin/python -c 'from SystemConfiguration import SCDynamicStoreCop圜onsoleUser import sys username = (SCDynamicStoreCop圜onsoleUser(None, None, None) or ) username = ] (username + "ĬheckForXcode=$( pkgutil -pkgs | grep _Executables | wc -l | awk '')Ĭmd_line_tools_temp_file="/tmp/.-progress" # Copyright 2020, Route 1337, LLC, All Rights Reserved. # Function: Deploy Homebrew (brew.sh) to the first user added to a new Mac during the post-DEP enrollment DEPNotify run Hope this script help you all to install the home brew from JAMF for standard account users and admin account users.
