Apple Macbook Pro M1 MacOS Big Sur – Missing xcrun after MacOS Update

I always face missing xcrun when I use command “git pull” after MacOS update where the OS will update xcode.

apple macbook pro M1 - missing xcrun
apple macbook pro M1 – missing xcrun

To solve this problem just install back the xcode-select via the command line.

A window will appear whether to continue to install. Just click install.

apple macbook pro M1 - install xcode-select
apple macbook pro M1 – install xcode-select

It takes around 5 minutes to download the file.

apple macbook pro M1 - download xcode select
apple macbook pro M1 – download xcode select

After installation, run again the “git pull” . This time it will work.

apple macbook pro M1 git pull success
apple macbook pro M1 git pull success