How to downgrade command line tools MacOS

Curious picture Curious · Dec 26, 2016 · Viewed 13.1k times · Source

I got a dynamic linker error with the __clock_gettime symbol so I did what this post said Missing symbol when installing ruby-2.3.0 on OS X 10.11.6 by RVM (i.e. xcode-select --install) and now I am getting loader errors that say that libraries were built for a newer OS version than the one I am currently running on, I dont want to upgrade my OS to the newer (Sierra) version though, is there a way you can downgrade the command line tools to an older version (10.11?)

Answer

l'L'l picture l'L'l · Dec 26, 2016

It's unclear which version of Xcode you are using, although it is possible to have multiple versions of the command-line tools installed, which can be selected in Xcode Preferences.

enter image description here