Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS 12.5 says this is malware and won't run it #44

Closed
rooneyp opened this issue Aug 28, 2022 · 51 comments
Closed

MacOS 12.5 says this is malware and won't run it #44

rooneyp opened this issue Aug 28, 2022 · 51 comments

Comments

@rooneyp
Copy link

rooneyp commented Aug 28, 2022

No description provided.

@rooneyp rooneyp changed the title MacOS 12.1 says this is malware and won't run it MacOS 12.5 says this is malware and won't run it Aug 28, 2022
@arndff
Copy link

arndff commented Aug 28, 2022

I'm having the same problem. What I tried is:

  • right click on MiddleClick
  • Get Info
  • Override malware protection

However, that didn't help me either -- when I tried to open the app, it says "The application 'MiddleClick' can't be opened."

Tried to delete it & install it with brew (the preferred way, described in repo's README) -- no success again.

Please, help us fix this somehow, as I can't live without this app, literally...

@ElectricS01
Copy link

This is also happening on the MacOS Ventura Public Beta 4

@Gumija
Copy link

Gumija commented Aug 29, 2022

Does not work for me either. Is this because of a malware db update or something system specific?
Can someone confirm it not working on a macOS version before 12.5?

@lawand
Copy link

lawand commented Aug 29, 2022

I tried the usual way to override but it didn't work: Right-click the application, select “Get Info”, and check the “Override Malware Protection” box

@benonymus
Copy link

Same issue on macOS 12.5.1

@jasonycw
Copy link

It was working on 12.5.1 last week, but this week after I restart the Mac, it cannot be started.
Tried Override malware protection
image

@yusufkinatas
Copy link

yusufkinatas commented Aug 29, 2022

Same here, my productivity decreased %50 after MacOS update because of this :( (MacOS 12.5)
I decided to try to solve this on my own, or code mine if this does not get resolved in 1week

@arndff
Copy link

arndff commented Aug 29, 2022

Does not work for me either. Is this because of a malware db update or something system specific? Can someone confirm it not working on a macOS version before 12.5?

@Gumija I updated to 12.5.1 almost instantly; the app was working fine till yesterday...

@Avivhdr
Copy link

Avivhdr commented Aug 29, 2022

+1

1 similar comment
@Marius30
Copy link

+1

@ChHecker
Copy link

When I dig into the contents of the app, try to manually run the executable and then click the question mark on the warning message, the help message says

The app’s authorization has been revoked

So has the certificate expired?

@sky-andremartins
Copy link

+1

@IhorDeyneha
Copy link

I also have the same problem. I couldn’t live without MiddleClick.

@nathansalaun-sofia
Copy link

I know it's not possible for everyone but cloning the repo + building the app to run locally worked fine for me.

@davystrong
Copy link

I built it myself and it appears to be working. Just had to remove the code signing (obviously). In my case I left it blank since I don't have a Mac developer account.

@yusufkinatas
Copy link

yusufkinatas commented Aug 29, 2022

It would be a huge step towards increasing everyone's productivity, if someone could release the local built version with working certification on GitHub. So everyone here could easily download & use it instead of spending time building it on their locals. The world would be thankful to such a person. @nathansalaun-sofia @davystrong 😊. Or at least sharing it here 😊

@davystrong
Copy link

@yusufkinatas unless someone has an Apple developer account (which I don't), my understanding is that that isn't possible. Apple won't let you install something I built without signing (or with local signing, I guess). Hence why neither of us shared it.

@nathansalaun-sofia
Copy link

nathansalaun-sofia commented Aug 29, 2022

I agree however I don't have anything setup to publish a signed app

edit: read I don't have an account either

@alicangok
Copy link

alicangok commented Aug 29, 2022

On my MacOS 12.1, the app seems to start, but doesn't work anymore. And I assume it keeps restarting every few seconds, as the icon disappears and reappears in the menubar.

edit: uninstalled via brew and reinstalled via brew. Now I'm getting this: #44 (comment)

I guess the only way will be to get it to work would be to do as @nathansalaun-sofia suggested, but I have no experience with building apps on MacOS (and don't have Xcode installed), and I assume a lot of middleclick users are also in the same boat.

edit2: I tried to build the project from the code, but from my understanding, it seems that a full-blown installation of Xcode necessary to build an app. CommandLineTools (specifically the xcodebuild command) ain't cutting it. Why the hell is a 10+ GB app necessary to simply build an app?

@nathansalaun-sofia
Copy link

@alicangok look at the logs in Xcode: the app restarts because it lacks Accessibility permissions. Quit the Xcode version, build it then install it in Applications, then grant it permissions and it will work

@Filaipus
Copy link

Having the same issue as everyone. Unfortunately don't have a developer account either or I would love to help.

@BJKle
Copy link

BJKle commented Aug 29, 2022

what has changed from yesterday to today, that we have this issue and the app isn't trusted anymore?
I don't even know how to create an app.
Tough luck 👎

@davystrong
Copy link

davystrong commented Aug 29, 2022

Regarding building from source, it's really not that hard (though I did use the full Xcode installation, so that may be an issue for some). If you are just building for you own use, I don't think you need a developer account, though you may need to sign in with your Apple ID.

If anyone without development experience wants to try, these are the steps (it really is very simple, I'm just adding all details):

  • Install Xcode (from the App Store, I believe. You may need to sign in)
  • Clone or download this repo
  • In the downloaded folder, open the MiddleClick.xcodeproj file (it may not work the first time, just try again after Xcode opens)
  • Up in the top left corner there is a little folder icon, make sure it's selected
  • Make sure the root of the project is also selected (the line directly below the folder icons which says MiddleClick
  • In the main area of the window click on the Build Settings tab
  • Scroll down to Signing, find the Code Signing Identity entry, click on it, select other, remove all text from that box, press enter to close it
  • Up in the top menu bar click on Product->Build. This should just work. You should get a message after a few seconds saying build succeeded
  • You should find the app in ~/Library/Developer/Xcode/DerivedData/MiddleClick-/Build/Products/Debug/MiddleClick.app. Move this file to your applications folder
  • You will need to add it to your accessibility settings, but you know how to do that

@PetarLotrean
Copy link

@davystrong worked for me, thanks!

@Gumija
Copy link

Gumija commented Aug 29, 2022

if @artginzburg is not around we might need to make a new fork and name it MiddleClick-Monterey xD
A release there could be the correct place to share the new app file.

I am quite new to mac os development, I've been in and out in the last half year in my free time.
But everything I read about code signing is pointing to the direction that if that was the issue we could bypass it by right-click > Open or such. Is this an issue here because of the Accessibility rights? Can that only be accessed by signed code maybe?

@Reedbeta
Copy link

Having this problem even on macOS 11.6.8. It started after doing a brew upgrade that updated MiddleClick 2.4.8.1 to 2.5.

@s0menickname
Copy link

Have this problem since updating to 12.5.1. Will try to download Xcode and build it myself now

@DouglasNewhouse
Copy link

@alicangok look at the logs in Xcode: the app restarts because it lacks Accessibility permissions.

Aha! So it looks like the easiest thing to do in the short term is download the previous version (2.4.8.1), drag that to your Applications folder, override the malware check, then manually add MiddleClick's Accessibility permission using the + button. There will already be an entry, but it's for the old version.
This works for me anyway, and it's much easier than installing an entire build environment.

@alicangok
Copy link

alicangok commented Aug 29, 2022

@DouglasNewhouse Does 2.4.8.1 work on M1 machines? The 2.5.0 specifically included M1 fixes.

(For what it's worth, I had been using MiddleClick 2.5.0 without problem on my MacOS 12.1 M1 for months. and it stopped working suddenly today, without any updates to anything)

@s0menickname
Copy link

Thanks to @davystrong I managed to build it myself in Xcode.

I can start it and it appears in the tray but it doesn't work (like the wheel click doesn't happen) and every 5 seconds the icon disappears and after a second appears again. I also had to download Xcode which takes 22 GB of space. Too bad, Apple!

M2 MB Air.

@davystrong
Copy link

@s0menickname did you remove it from your accessibility settings and re add it? That should fix it.
(Yes, Xcode is huge and is also pretty useless)

@s0menickname
Copy link

@s0menickname did you remove it from your accessibility settings and re add it? That should fix it.

@davystrong god bless you, that helped!

@Reedbeta
Copy link

Confirmed that stepping back to 2.4.8.1 (from Releases page here) and removing/re-adding the accessibility setting fixed it for me. BTW, I'm on an M1 Macbook, and this version has always worked for me (presumably through Rosetta rather than native).

@alicangok
Copy link

Confirmed that stepping back to 2.4.8.1 (from Releases page here) and removing/re-adding the accessibility setting fixed it for me. BTW, I'm on an M1 Macbook, and this version has always worked for me (presumably through Rosetta rather than native).

Thank you. This solves the issue (through Rosetta translation, which probably comes at a little computational cost)

@DouglasNewhouse
Copy link

Does 2.4.8.1 work on M1 machines? The 2.5.0 specifically included M1 fixes

Yes - at least on my M1 Air.

@jasonycw
Copy link

Thanks, can confirm 2.4.8.1 is working on M1 Pro

@arndff
Copy link

arndff commented Aug 30, 2022

I also went with installing 2.4.8.1 instead of building locally the latest version.

Works fine (at least for now).

Thank you all! :)

@trihutama
Copy link

trihutama commented Aug 30, 2022

For people who don't have Xcode ,
MiddleClick.zip
this is without certificate
to open this app, go to finder > right click > then Open

@crozet-magenta
Copy link

thank you @trihutama it works fine like this

@IhorDeyneha
Copy link

@alicangok look at the logs in Xcode: the app restarts because it lacks Accessibility permissions.

Aha! So it looks like the easiest thing to do in the short term is download the previous version (2.4.8.1), drag that to your Applications folder, override the malware check, then manually add MiddleClick's Accessibility permission using the + button. There will already be an entry, but it's for the old version. This works for me anyway, and it's much easier than installing an entire build environment.

For me this method is working on MacBook pro (Intel).

Thank you guys! Thank you @DouglasNewhouse

@willdashwood
Copy link

willdashwood commented Aug 30, 2022

For peope who don't have Xcode , MiddleClick.zip this is without certificate to open this app, go to finder > right click > then Open

Thanks @trihutama. I uninstalled via brew first (brew remove middleclick) then removed MiddleClick from Security & Privacy > Accessibility list. Extracted your zip file and copied the app over to Applications folder. Ran:

sudo xattr -r -d com.apple.quarantine /Applications/MiddleClick.app

Then manually added the app back under Security & Privacy > Accessibility list. Works fine now, cheers!

@rdelassus
Copy link

I've tried both the build the solution and the old version solution, and in both cases I have the same issues : The app is killed every 3 seconds and restarts, and I cannot middle click

@trihutama
Copy link

I've tried both the build the solution and the old version solution, and in both cases I have the same issues : The app is killed every 3 seconds and restarts, and I cannot middle click

@rdelassus try delete old apps first using AppCleaner, remove old MiddleClick accessibility option , then open app again with right click > Open

@sky-andremartins
Copy link

I've tried reinstalling with the previous version (2.4.8.1) and on Mac M1 it keeps restarting

@artginzburg
Copy link
Owner

My understanding is that when I recently signed in to Xcode on a new machine, my old certificate has been revoked (received an email stating this 3 days ago), and a new one was generated, so apps signed prior to that need to be rebuilt.

The fun thing is that it's a development certificate, without notarization. Wonder how much of extra security does that actually bring to users...

Try downloading this: https://github.com/artginzburg/MiddleClick-BigSur/releases/tag/2.5.0.1
It's simply rebuilt with no changes at all. Another funny thing is that the app size just shrank by almost half a kilobyte.

@hiraken0427
Copy link

GREAT WORK!
You have made my work far more efficient. Thank you very much.

@SuchSkill
Copy link

SuchSkill commented Aug 30, 2022

@artginzburg Amazing! Would it also be possible to update brew version in a timely manner?

@rooneyp
Copy link
Author

rooneyp commented Aug 31, 2022

Much thanks!

@artginzburg
Copy link
Owner

Amazing! Would it also be possible to update brew version in a timely manner?

Merged, Homebrew/homebrew-cask#130660

@Alex2782
Copy link

Thank you @artginzburg

@chrisma
Copy link

chrisma commented Sep 5, 2022

Thank you @artginzburg! This is essential macOS software! 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests