xcrun: error: active developer path (“/Applications/Xcode.app/Contents/Developer”) does not exist?

I'm having xcode issues when I try to use brew and git: xcrun: error: active developer path ("/Applications/Xcod...