

Update 3: same error if I use /usr/bin/git (git version 2.11.0 (Apple Git-81)) or /usr/local/bin/git (git version 2.13.0) Update 2: explicitly setting DEVELOPER_DIR also doesn't seem to affect anything.

Update: Tried a reboot, I am still in the same situation with xcode-select -p reporting one directory while the error message says something else. I even tried sticking a copy of /usr/bin/xcrun into /Library/Developer/CommandLineTools/usr/bin but when I do git pull it still claims there isn't an xcrun in there. It's not in either /Applications/Xcode.app/Contents/Developer/usr/bin or /Library/Developer/CommandLineTools/usr/bin. One weird data point is that the only location I've got xcrun installed on the system is in /usr/bin. None of those works every time I try to do a git pull, it keeps looking in /Library/Developer/CommandLineTools despite xcode-select -p reporting the correct new address. I've also gone into the Xcode UI preferences and made sure that it's pointing at /Applications/Xcode.app.

Or > sudo xcode-select -s /Applications/Xcode.app Applications/Xcode.app/Contents/Developer There's plenty of StackOverflow articles on this issue telling me to do things like: > sudo xcode-select -reset Xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrunįatal: Could not read from remote repository. Asking here because it seems to be an Xcode config issue: > git pull I mass updated homebrew and now my git is broken.
