Run a Shell Script Action Produces an Error After Upgrading to Ventura

I upgraded to Ventura 13.0.1 yesterday. This morning, one of my morning routine scripts is returning an error. The script includes a run shell script action. The error message I am getting is:

2022-11-30 07:46:01 Execute a Shell Script failed with script error: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun. Macro “MR - Daily Report” cancelled (while executing Execute Shell Script).

The command in the script (running a Python program) works fine if I directly enter it into a Terminal window. The shebang I'm using in the KM command is #!/bin/zsh

Any thoughts about how I address this? The upgrade to Ventura is the only change to the system since yesterday morning -- when the Macro worked fine -- to this morning.


Have you reinstalled the command line tools for XCode yet ?

If not, you may need to.

That did it -- thank you!

1 Like