-
Notifications
You must be signed in to change notification settings - Fork 77
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
AdGuard for Safari doesn't work on OS Catalina #172
Comments
Works for me? I'm using the latest beta |
@choco Latest beta of Catalina or AdGuard? Fresh install of AdGuard and Catalina here and definitely not working |
Latest AdGuard beta. I didn't do a clean install, but upgraded from Mojave. |
@choco checking latest beta now |
Confirm latest beta works fine! Thanks @choco |
@Yoshi2889 could you please check if there's any issues with the standalone build of AdGuard? |
@ameshkov The GitHub releases build seems to work just fine, it doesn't throw any errors. Gatekeeper is behaving a bit weird however: Speaking of Gatekeeper, my idea of checking the signing status of the file came from this blog post: https://eclecticlight.co/2019/06/12/grokking-gatekeeper-in-catalina/ Looking through the Task Explorer app, none of the standalone app's open files list any file named similarly to what throws the error on the MAS version. EDIT: Wrong image, oops. |
I am starting to think that it requires the library to be notarized, and not just signed. The question is why it is not notarized automatically when we upload the app to the appstore? After all, the standalone build is properly notarized. |
@Mizzick let's try getting rid of |
Just to clarify, it's now a requirement in Catalina, your whole app must be signed and notarized. Every file needs to be properly signed inside for notarization to work. Notarization will fail if one file is not signed, but at least it will give you a good error output on which files are not signed. You can have a look here : https://developer.apple.com/documentation/security/notarizing_your_app_before_distribution/customizing_the_notarization_workflow?language=objc This is mandatory for all distributions methods, so your builds in this repository should also be notarized or they won't work without disabling gatekeeper. |
@glouel well, we notarize the standalone build, and it works just okay on Catalina. But it's not that simple with the MAS build. In theory, we shouldn't do anything, it all must be done on the App Store side. |
Is the non MAS version sandboxed? I’m thinking that there might be a difference that causes that file to only be generated under the MAS version. |
@Yoshi2889 nope, it's just with hardened runtime enabled.
Hm, sounds interesting. |
Hm, might be worth checking if the MAS is sandboxed. I’ll check if the standalone WhatsApp client also works on Catalina tonight seeing how its MAS version is also broken in a similar way. |
@Yoshi2889
Are you talking about that native node module file? |
Apologies, I assumed you didn't. FYI for some reason 1.4.1 (this file : https://github.com/AdguardTeam/AdGuardForSafari/releases/download/v1.4.1/AdGuard.for.Safari.app.zip ) won't launch on my system on Catalina beta 4. I had previously installed the MAS version a few days ago (I think 1.3.3 ?) and had the same error as top post (I bypassed it by disabling gatekeeper temporarily). But right now the standalone 1.4.1 file won't launch, a quick check show the file is quarantined :
If I run codesign, looks like the Electron framework is indeed the culprit as you guessed earlier:
Usually removing the quarantine bit should do the trick (xattr -d com.apple.quarantine filename). It doesn't do the trick for me so I assume there's something linked to having the MAS version, having removed it and being unable to install the standalone version in it's place. I doubt the issue is on your end, but the Electron Framework thing is probably relevant anyway.
Since 1.4.1 is also on the MAS now, I grabbed it there and it's better, in the sense I have the "usual" gatekeeper error : Funnily enough, it looks like it's properly signed:
(so here Electron framework seems to be signed differently than in your standalone build chain). System policy seems to find the file ok too :
My guess is you may be having some issues with the hardened runtime, possibly the JIT part but not only. Here's what I see in Console :
(GameController ?) and
So you need entitlements (this happens just before you try to set it for relaunch):
So at the very least you need To get back to making the MAS version work, here's what I did and should work for everyone:
Don't forget the last step to reenable Gatekeeper. Sorry for the long post but hopefully that will help you figure out the issues. |
Apologies for my late reply, I totally forgot. I tried the official WhatsApp Desktop client and it also works if you download its standalone website build. It is also not sandboxed in that case. |
…e-version to master * commit 'd2f73ca18d9cba489ffc4a22419702f03c685f24': updated version
Screenshot 1
Screenshot 2
The text was updated successfully, but these errors were encountered: