When I'm doing various development-related activities (such as initializing a git repository or installing packages in RStudio), I get repeatedly asked to install command line developer tools, even though I already have it installed.
I have a directory at
/Library/Developer/CommandLineTools which contains
If I go along with the popup and install command line tools (again), the popup simply appears again if I attempt whatever I was doing before (like initializing a git repo).
I've attempted running
xcode-select --install, but I get an error saying
Failed to locate 'clang', requesting installation of command line developer tools
and then that previously mentioned popup for installing command line tools reappears. I'm currently running MacOS Big Sur, but I'm fairly certain this was still an issue on the previous OS. Any suggestions on how I can fix this?