Basically, it lets you communicate directly with your computer through text commands. Terminal is a nifty little app on your Mac that allows you to access your computer's command line interface. Now, I know what you're thinking – "What the heck is Terminal?" Trust me, it's not as scary as it sounds. Hey there, friend! Are you ready to learn how to check your Xcode version on Mac Terminal? Great! First things first, we need to open up Terminal. Excited? We sure are! Let's dive right in! Step 1: Open Terminal on your Mac And not only that, but we'll also share some additional tips and tricks to make your life even easier. By the end of this article, you'll have learned how to quickly and easily check your Xcode version. So, even if you're new to working with Xcode on Mac Terminal, don't worry! We've got you covered. And we're going to show it to you with step-by-step instructions. "How amazing could it be that checking the version of Xcode could have a whole article to itself?" But let me tell you, my friend, there's a nifty little trick to checking your Xcode version that not many people know about. Now, hold up! I know what you're thinking. So, today's topic is all about checking your Xcode version on Mac Terminal. Hey there! Are you someone who works with Xcode on Mac Terminal quite often? Or someone who's just starting out this process? Either way, you've come to the right place! In this subtopic, I'll give you a brief to what we're about to cover in this article. Step 2: Type in the Xcode Version Check Command.Softwareupdate -install "Command Line Tools for Xcode-13.2"Ĭlosed Terminal and reopen /usr/bin/xcodebuild -version Title: Command Line Tools for Xcode, Version: 12.5, Size: 470820K,> Recommended: YES, Title: Command Line Tools for Xcode, Version: 12.5, Size: 470966K,> Recommended: YES, Label: Command Line Tools for Xcode-12.5.Title: Command Line Tools for Xcode, Version: 13.2, Size: 577329K,> Recommended: YES, Label: Command Line Tools for Xcode-13.2.Title: Command Line Tools for Xcode, Version: 12.4, Size: 440392K,> Recommended: YES, Label: Command Line Tools for Xcode-12.4.Software Update found the following new or updated software: THEN try Update to a specific version of CLTįirst, remove the existing CLT with sudo rm -rf /Library/Developer/CommandLineToolsĬheck which CLT updates available softwareupdate -list Try sudo xcode-select -switch /Library/Developer/CommandLineTools/ Pkgutil -pkg-info=_Executables | grep versionīut this is good to identify the version $ /usr/bin/xcodebuild -version Sudo xcode-select -s /Users//Applications/Xcode.app ![]() Go to Terminal and use the path in xcode-select Select the appropriate Command Line Tools Xcode> Preferences> Locations shows available CLT and the location (path) of each. ![]() Open /Applications/Xcode.app Check the CLT in XCode It takes a while to download, then a while longer to validate the application. Xip -expand /Applications/Xcode_13.2.1.xip Get the specific version of Xcodeĭownload a specific version of Xcode as a xip from (I downloaded Xcode_13.2.1.xip) Warning: A newer Command Line Tools release is available. Please update to Xcode 13.2.1 (or delete it). I have always used App store to install and update Xcode on my (2014) Macbook Pro but today after all updates brew doctor was still complaining about Xcode I found that brew complains about Xcode or Command Line Tools, and so following details how to install specific version of either. Options to select Command Line Tools is in Xcode > Preferences > Locations, including the path for each. This is where the system thinks your CLT are xcode-select -print-path One can have multiple installations of Xcode and multiple installations of Command Line Tools. So when you know for sure the commandline tools are installed (because, for instance, xcode-select -install tells you so) but none of the other methods works, check softwareupdate -history! Display Name Version DateĬommand Line Tools for Xcode 12.1, 22:38:33Ĭommand Line Tools for Xcode 12.3, 16:38:27 Which listed 12.3 as the last version it updated. ![]() How I finally found out what version of the XCode Commandline Tools is installed I stumbled upon the command: softwareupdate -history However I knew that my version must be out of date as the installer for one of homebrew packages told me so! Softwareupdate -list told me everything was up to date. Xcode-select -version only gave me the version of xcode-select itself, with no clue as to the commandline tools version. Not having XCode installed (and having no need for it), I could not look in settings dialogs of that either. pkgutil didn't give me the package of the XCode Commandline Tools, with none of the suggested package names. None of the available answers to get the version worked. I had XCode Commandline Tools installed for sure, but not XCode itself.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |