Forum Discussion
The macOS app crashes after every upgrade with Homebrew
I install the macOS app via homebrew:
brew install --cask 1password
but everytime that there's a new version and I upgraded:
brew upgrade --cask --greedy
It installs the update correctly, but the app crashes every time I launch it right after the upgrade.
Once I click Reopen, the app launches normally and works fine—until the next update, when it crashes again the first time.
I just want share that issue.
Thanks.
5 Replies
- eestolanoNew Contributor
I have the same problem. I use Homebrew for as many apps as possible, simply because it’s much easier to keep on top of updates that way, rather than dealing with each app’s specific idiosyncratic updater separately.
I will note that I have a few dozen apps installed as Homebrew casks; I periodically run “brew update && brew upgrade --greedy” to update them all, without bothering to close any that might be running; and of all those apps, 1password is the only one that crashes if it’s updated while running.
- 1P_Dave
Moderator
Thanks for reaching out. 1Password for Mac is only officially available from the 1Password website: https://1password.com/downloads/mac
The use of the "--greedy" in the command that you provided seems to force Homebrew to update an app even if the app otherwise shouldn't be updated via Homebrew because it includes a built-in updater. This can cause issues as can other update scripts that try to replace the 1Password app without first closing it.
I recommend one of the following options:
- Install 1Password from our website. The built-in updater will automatically keep 1Password updated without you having to run any commands or perform any manual actions.
- If you'd like to keep using Homebrew, completely close 1Password before running your update command.
I hope that helps.-Dave
- 1P_Dave
Moderator
Hello ghostdog! 👋
Thanks for reaching out. I wonder if the 1Password app isn't being closed properly when the update occurs. Can you try the following:
- Close all open web browsers.
- Right-click on the 1Password icon in the menu bar at the top of your screen and then click Quit.
- Update the app using Homebrew.
Do you see the same crash?That being said, 1Password does include a built-in updater that handles updates when you install the app from our website. Is there a reason why you're installing and updating 1Password using Homebrew? 1Password is officially available only through our website.
-Dave
- ghostdogOccasional Contributor
I'll try that on the next upgrade.
I don't remember if I quit the app from completely and the browser.
Like eestolano says, I like install and keep control of the apps with brew, is so easy and I don't need visit any site.