Thanks for the solution g-patel. When trying to execute sudo pip3 install pyobjc
on my mac that just got upgraded to MacOS 14, I got the error xcrun: error: invalid active developer path (/library/developer/commandlinetools), missing xcrun at: /library/developer/commandlinetools/usr/bin/xcrun
I needed to install xcode using the following: xcode-select --install