Error when updating Oh My Zsh

Error when updating Oh My Zsh 1

I was recently trying to update Oh My Zsh on my 2018 13in MacBook Pro and was getting the following error.

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

If you come across this error you will need to issue the following command to have Xcode install command line tools which will then resolve the problem.

xcode-select --install

After the install has completed you can use the new method of updating Oh My Zsh and it should complete with out error.

omz update