xcrun: error: invalid active developer path — Cloud Posse Developer Hub

When using git, I get the following error on OSX:

This usually happens when upgrading to a new OSX release or on a new workstation.


This is a companion discussion topic for the original entry at https://docs.cloudposse.com/troubleshooting/xcrun-error-invalid-active-developer-path/