How to Override MacOS Command Line Tools

I got a dynamic linker error with a symbol __clock_gettime, so I did what this post said There is no symbol when installing ruby-2.3.0 on OS X 10.11.6 RVM (i.e. xcode-select --install), and now I get bootloader errors that say that the libraries were created for a newer version of the OS than the one I am currently running, I do not want to upgrade my OS to a new version (Sierra) though, is there any way to transfer the command line tools to an older version (10.11?)

+4
source share
2 answers

It is not clear which version of Xcode you are using, although it is possible to install several versions of the command-line tools that can be selected in the Xcode settings.

enter image description here

+3
source

Command line tools come with Xcode. If you uninstall and reinstall Xcode, it should do the trick. After removing Xcode from your applications, use the link "Previous versions of Xcode can also be downloaded here" at https://developer.apple.com/support/xcode/ . SPOILER ALERT: you need to create / create an Apple dev account for this

+1
source

Source: https://habr.com/ru/post/1664884/


All Articles