squatto / alfred-imessage-2fa

iMessage 2FA Workflow for Alfred
MIT License
111 stars 7 forks source link

Stopped working for me after Monterey update #25

Closed AnKingMed closed 2 years ago

AnKingMed commented 2 years ago

It still pulls up in alfred, but it can no longer find the codes in imessage

luckman212 commented 2 years ago

@AnKingMed Same thing happened to me. I figured it out... Monterey no longer includes php by default.

So you need to install php with Homebrew etc.

brew install php

Then, edit the workflow script to include the full path, e.g. on an M1 mac it would be /opt/homebrew/bin/php

CleanShot 2021-10-27 at 01 29 42

Quickshadoww commented 2 years ago

thanks got it working again :)

AnKingMed commented 2 years ago

I'm not able to get it working on my Intel mac. I tried your location as well as multiple other permutations /opt/php (where the alias is) or /usr/local/Cellar/php (where the actual file is). I also tried /Cellar/php and various other permutations. Does anyone have any suggestions? image

luckman212 commented 2 years ago

On Intel it's probably /usr/local/bin/php but if you type which php in Terminal it should tell you @AnKingMed

AnKingMed commented 2 years ago

Finally working. Thanks for the help

chrismessina commented 2 years ago

FYI, the removal of PHP in Monterey is discussed on the Alfred blog.

hoium commented 2 years ago

For users with multiple Macs - Intel & M* and PHP installed via brew I added the following to help with sync

export PATH=$PATH:/usr/local/bin/:/opt/homebrew/bin/
php find-messages.php $look_back_minutes
squatto commented 2 years ago

Thanks for working through this! I just released a new version that figures out where php is located on your system. It checks for these paths and uses the first one it finds:

You can download the latest release here