caleb531 / youversion-suggest-alfred

An Alfred workflow for searching the YouVersion Bible quickly and easily
MIT License
57 stars 1 forks source link

Workflow Error: missing xcrun #19

Closed vgteig closed 2 years ago

vgteig commented 2 years ago

Hi,

I love the workflow you've created. But some time ago the workflow stopped working, even when I reinstall the workflow. It seem to work until i search for something, then it leads me to google search instead of connecting to the api (so it seems).

Any idea what is wrong?

bevanjkay commented 2 years ago

Are you using version 12 or later? The previous version of python that was being used by the workflow was removed from the operating system by Apple in Monterey 12.3 - so you would need to download the latest version of the workflow for it to work again.

vgteig commented 2 years ago

I am using Monterey 12.3 with the latest workflow you put out, and I have the latest version of python installed, 3.10.4.

caleb531 commented 2 years ago

Hi, @vgteig! Sorry to hear this is happening. The latest release of the workflow (v12 or later) should definitely be compatible with Apple's recent changes in Monterey 12.3. So I would recommend trying a few things:

  1. Run the yvclearcache command in Alfred to clear the workflow's internal cache
  2. If that doesn't work, open Alfred's workflow debugger and run any command that is not working for you. After you run the command, you should see any errors in Alfred's debugger panel
vgteig commented 2 years ago

This is the message i got:

[22:44:59.076] Logging Started... [22:45:09.424] YouVersion Suggest[Script Filter] Queuing argument 'm' [22:45:09.501] YouVersion Suggest[Script Filter] Script with argv 'm' finished [22:45:09.505] ERROR: YouVersion Suggest[Script Filter] Code 1: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun [22:45:09.584] YouVersion Suggest[Script Filter] Queuing argument 'ma' [22:45:09.593] YouVersion Suggest[Script Filter] Script with argv 'ma' finished [22:45:09.596] ERROR: YouVersion Suggest[Script Filter] Code 1: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun [22:45:10.019] YouVersion Suggest[Script Filter] Queuing argument 'mat' [22:45:10.033] YouVersion Suggest[Script Filter] Script with argv 'mat' finished [22:45:10.035] ERROR: YouVersion Suggest[Script Filter] Code 1: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

caleb531 commented 2 years ago

@vgteig I see. You probably need to reinstall Apple's Command Line Developer Tools. Try running the following commands in Terminal:

sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install

After running these commands, you should be prompted to re-install the developer tools. Let the software re-install, then try running the workflow again.

vgteig commented 2 years ago

It works now. Thanks a lot for the help! I really love your workflow. It is a great blessing.

caleb531 commented 2 years ago

@vgteig I'm happy to help! May you and your family have a blessed Easter.

Regards, Caleb