I was running into the below error when execting $appium-doctor
Xcode Command Line Tools are NOT installed: Error: Command failed: /bin/sh -c pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
/bin/sh: pkgutil: command not found
I verified that my command line tools were installed - uninstalled them and reinstalled them.
Did some digging around and found in this python homebrew issue (github-homebrew-issue) that command line tools exist in the /usr/sbin/ which wasn’t part of my PATH.
Adding /usr/sbin/: to my path fixed this problem.