Download Xcode Command Line Tools Catalina ((BETTER))

16 views
Skip to first unread message

Javon Baker

unread,
Jan 25, 2024, 5:40:45 PM1/25/24
to raispookenthroph

Hello,
After upgrading to macOS Catalina , ROOT started throwing errors. So, I uninstalled it, then reinstalled command line tools and Xcode.
I tried to reinstall ROOT from Hombrew, and then compile it myself from the binary But it kept giving me the same error

Hi,
It is not giving me an explicit error message, even looking at the log files
I followed the guide-(I have been working with root for years, I never had such a problem)
Yes, I started with Homebrew and it stoped at the same exact spot.
Root was installed, but once I upgraded to Catalina it did not work anymore. So I reinstalled the command line tools and wanted to reinstall it And that happened .

download xcode command line tools catalina


Download File ✸✸✸ https://t.co/Aws6wu5C5a



The top instructions (removing the command line tools, xcode-select --install, and brew install svn) worked for me (Monterey, 12.5.1, on an M1 pro). Thanks!However, after I did the brew install, I had to manually remove the old svn version from /opt/local/bin before the new version would run. (discovered with $ which svn). Might be the result of migrating from the old laptop to the new one.

The command-line tool installer installs lots of stuff (libraries, frameworks, etc.) in multiple OS system directories. So you probably need to find or create a volume (external drive or partition) with OS X High Sierra on it for the install to complete.

I have Xcode installed on my computer. Initially I installed the xcode command line tools by prompt when opening Xcode. In my Xcode preferences, in the locations section, command line tools read Xcode 12.0 (12A7209) and below it the path /Applications/Xcode.app. However, as documented NUMEROUS times on stack overflow, Homebrew was not recognizing my xcode command line tools (CLT: N/A). So I downloaded the pkg file from Apple Developer and reinstalled the command line tools with that pkg file as the command line install xcode-select --install didn't work. The gui installer finished with no errors. Now, Homebrew recognizes my CLT.

Question: if Xcode already installed command line tools, then what location did the downloaded pkg file from Apple developer install the command line tools too? Did this leave me with 2 versions of the xcode command line tools on my system?

My first attempts to solve this were all unsatisfying. I can provide all the search paths via -isystem. That may be all right for projects with CMake, but not for a quick compile directly on the command line. The next tip I found was setting the environment variable CPLUS_INCLUDE_PATH. Both compilers use it, and you can override the default include paths with it. The trouble is that all system include paths, need to be listed as this environment variable replaces them all. It seemed like a doable approach first. But remember that I use Clang and gcc? The compilers C++ includes are different for each of them. But there is only one CPLUS_INCLUDE_PATH.

The errors appeared for me after I installed command line tools, which I needed only temporarily. I fixed it by deleting /Library/Developer/CommandLineTools and running sudo xcode-select -s /Applications/Xcode.app (11.4). Maybe there's a more robust solution.

Removing the Xcode 11.5 command line tools as described in [SR-12726] Can't build apple/swift `master` on macOS with Command Line Tools installed Issue #55171 apple/swift GitHub fixes this issue for me

Many thanks guys, removing the command line tools did the trick, after the Catalina 10.15.6 upgrade a few days ago. No idea why this happens again and again. On another Mac, I have commandline tools, only and no problems.

Correction: Actually, I ended up erasing XCode and commandline tools completely.
Then I reinstalled commandline tools but the xcode-select -p setting showed something with /Application/XCode/Developer.
After xcode-select -s /Library/Developer/CommandLineTools/ everything worked fine.

The command line install for xcode-select may not work on Catalina. You can install these manually via download from the Apple Developer portal: Sign In - Apple. You will need to use your appleID to access this and then determine which version of the "Command Line Tools for Xcode" you should use with Catalina - you probably need an earlier version that would be compatible with Catalina - up to 11.5 may work.

And the XCode Command Line Tools for Mac Catalina enables UNIX-style development via Terminal by installing command line developer tools, as well as Mac OS X SDK frameworks and headers.

How to install Xcode Command Line Tools from Xcode 15. What is Xcode command line tools. Installing Xcode Command Line Tools without all the Xcode extras. You'll need Xcode Command Line Tools for developing software on a Mac.

The installer goes away on its own when complete, and you can then confirm everything is working by trying to use one of the commands that were just installed, like gcc, git, svn, rebase, make, ld, otool, nm, whatever you want from the list below. Assuming the installation went uninterrupted, the command will execute as expected. This also means you can compile and install things from source code directly without having to use a package manager. Enjoy your new unix command line toolkit!

You have to enter exact syntax at the command line, if you combine words or commands with a flag or parameter the command will always show an error. The command line offers no leeway or forgiveness, everything must be precise and exact.

i have installed command line tools like you suggested on my mavericks 10.9.5 .now further how to operate c or c++ like where to write the programs ,how to compile or how to run..i have no idea about all that..

There is two working solutions. Find a download of Xcode 10 and copy the Application Loader.app out of it to some place where you can load it. Or learn how to use their various command line tools. This takes some setup as you will have to get an API key from Apple, setup some encryption stuff (not hard) and then run a command from the command line to send the app. There are existing forum threads that cover what you need to do. Please search the forums or use Google to search on the topic.

Older versions of XCode can be found at the Apple Developer site (you will need to login with your AppleID).Which version of Xcode should I download?You can view the Version History for the XCode app in the app store, which will list the software requirements.-OR-This is a handy site that lists the major XCode releases as well as the macOS requirements. There is a direct link to download the software from the Apple Developer website, but you need to be logged into developer.apple.com.For simplicity, these are the XCode versions needed for different macOS versions:Catalina (10.15.3): XCode 11.4 (Download)Mojave (10.14.3): Xcode 11.3.1 (Download) or XCode 10.3 (Download)High Sierra (10.13.6): XCode 9.4.1 (Download)For example, I am currently running macOS 10.14.3 (Mojave), so the XCode version I need is XCode 10.3.For OSs other than Catalina you should also download the Command Line tools for the same version (this will replace the xcode-select --install step given in the handbook).Mojave (10.14.3): Command Line Tools for Xcode 11.3.1.dmgHow do I install XCode from the Apple Developer site?Once you have found the version of XCode that you need, you will download the application as an .xip file (the file is named XCode_.xip, and is 6-7GB in size).Then, navigate to your download, and double click it to extract the software. Next, move the extracted XCode into your Applications folder, and you can now continue with the rest of the setup instructions in the biostar handbook (i.e. typing "xcode-select --install" ).The Command Line Tool download is a .dmg file... simple double click on it and follow the install directions.

The ROS2 instructions work for installing the XCode command line utilities,but it seems that I also needed to install XCode from the App store AND startthe XCode GUI in order to finish the installation.

There is a quick solution to sign any .app on macOS installing free codesign tool. Open Terminal App and execute the code to start the download and installation process of Xcode and the command line developer tools from the AppStore. Launch Xcode at least once to agree to the license.

When Apple introduced notarization with Catalina, I published a post describing how to notarize a command line tool. At WWDC this year, Apple introduced updates to this process with Xcode 13 (currently in beta). Most importantly, there is a new command line tool called notarytool.

I have broken the command into multiple lines for clarity, you can enter the command in one line without the end-of-line backslashes \. You want to replace the values for the identifier, version and signing certificate with your data.

Once those are set, select the Project tab again and add your Developer ID Distribution signature using the Set Certificate command in the Project menu. This new feature saves you from having to add the signature at the command line afterwards, and is a boon.

I cannot reproduce the step where the Info.plist file is added to the command line tool project.
When I run codesign -dvv tool, I get Info.plist=not bound.
Could you please elaborate this step a bit?
Thanks!

Thank you very much, that worked for me. This article is extremely helpful.
Also, in this context, would you know of any resources on the web that help in configuring entitlements or capabilities for command line tool targets in Xcode, so that the command line tool would be able to talk to the secure enclave and create key pairs and sign / encrypt messages?

7c6cff6d22
Reply all
Reply to author
Forward
0 new messages