edit
はまりポイント
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
上記のようなエラーが出ることがある。
その場合以下のコマンドを実行
xcode-select --install
https://blog1.mammb.com/entry/2019/12/03/225607