A recent OS upgrade rendered the crontab to malfunction on macOS Monterey. It turned out the system just needed a reset of System Preferences > Security & Privacy > Privacy tab, and to make sure cron has full access to disks. Once you flipped that, your crontab should start working. Hope that helps.
mac os
Remove Extended Attributes on Mac
If you have a file with @ sign at end, this is how to remove extended attributes on the Mac OS.
Example.
ls -l -rwxr-xr-x@ 4 username staff 128 Mar 24 10:51 sample.txt |
Remove extended attributes.
xattr -c sample.txt |
Result
ls -l -rwxr-xr-x 4 username staff 128 Mar 24 10:51 sample.txt |
XCode after Catalina Upgrade
I tried running git after the Mac OS Catalina upgrade and got this error.
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun |
Here’s the fix. For some very odd reason, Apple does not automatically reinstall xcode after each Mac OS upgrade.
You will need to either reset it or install it again.
# Try reset first xcode-select --reset # Or install it if reset doesn't work xcode-select --install |
Close your terminal, and reopen and run git again.