Those on a Mac may need to install the Developer command-line tools using the command xcode-select install
https://tips.tutorialhorizon.com/2015/10/01/xcrun-error-invalid-active-developer-path-library-developer-commandline-tools-missing-xcrun/