qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.43k stars 2.98k forks source link

Notarize QGIS installer on macOS #32167

Open oole97 opened 4 years ago

oole97 commented 4 years ago

Describe the bug

When trying to open QGIS the computer says that it cannot be opened because Apple cannot verify if there is evil software inside. Is it possible to overrule this safety feature?

How to Reproduce

Try to start up QGIS after downloading the new version of QGIS and Mac OS.

QGIS and OS versions

QGIS 3.8 & 3.4 Mac OS Catalina (10.15)

Additional context

Downloaded the new version right on Mac OS Catalina and it won't open again.

PeterPetrik commented 4 years ago

@oole97 I have just upgraded and I can open both 3.8 and 3.4 without a problem.

PeterPetrik commented 4 years ago

workaround: you need to right click on open, and then open again this does force open on mac

oole97 commented 4 years ago

I indeed needed to reinstall. I was using a previous version beforehand. I could not indicate that I trust QGIS. It was automatically blocked.

The workaround indeed works. Thanks for the help!

PeterPetrik commented 4 years ago

@oole97 so after reinstall it was without the wrong certificate error?

PeterPetrik commented 4 years ago

hmm, I got this:

Screenshot 2019-10-09 at 12 30 25

https://www.fireebok.com/resource/how-to-fix-that-app-can-not-open-on-macos-catalina.html

we need to notarize our app: https://developer.apple.com/documentation/security/notarizing_your_app_before_distribution

oole97 commented 4 years ago

This is indeed the sign I got. But with the right click I can open it again.

Maybe it is also possible to work around it by authorizing it in the Security tab in Settings. I have not tried it yet.

timlinux commented 4 years ago

You can also allow the app in security preferences

ghost commented 4 years ago

This problem still exists on qgis 3.12, version downloaded 22-Apr-2020, on OSX Catalina 10.15.4. Error is verification as in PeterPetrik commented on 9 Oct 2019 post. Note last version that worked for me was 13.8.

krisfocus commented 4 years ago

Just change it in Security and Privacy -> Allow apps downloaded from -> Apps store and identified developers. It will show QGis has not opened, with an option to open on the side. Click it. It will open

ghost commented 4 years ago

Hi

That was the default setting,but id would not open.

However if you press Shift and Click then select open that fixed it, even over a cold reboot.

On 28 May 2020, at 07:54, Harikrishnan Guruvayoorappan notifications@github.com wrote:

Just change it in Security and Privacy -> Allow apps downloaded from -> Apps store and identified developers. It will show QGis has not opened, with an option to open on the side. Click it. It will open

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/qgis/QGIS/issues/32167#issuecomment-635145146, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC7N7JD6OKBRHLAQXQYU23TRTYDCJANCNFSM4I6TRM3Q.

krisfocus commented 4 years ago

Hmm. Interesting. I had download the version today and installed it. Tried the way I said, and it opened fine. Good that it works for you now!

ghost commented 4 years ago

Hi I found the shift method on a search for another piece of software that would not install, so tried it on qgis. Seem rather inconsistent ways of doing things. Perhaps qgis can either get it accepted by Apple, or place a work around on their website, I could not find any solution when I searched a few weeks ago. macosx Ver 10.15.5 has just been release, hopefully it will still work.

On 28 May 2020, at 08:04, Harikrishnan Guruvayoorappan notifications@github.com wrote:

Hmm. Interesting. I had download the version today and installed it. Tried the way I said, and it opened fine. Good that it works for you now!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/qgis/QGIS/issues/32167#issuecomment-635150175, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC7N7JDWU6MEGSPWIA5XV6TRTYEJFANCNFSM4I6TRM3Q.

choffa commented 4 years ago

Same issue on MacOS Catalina 10.15.6 using QGIS 3.10. Could open with the force open workaround.

PeterPetrik commented 4 years ago

add note to web: https://github.com/qgis/QGIS-Website/pull/809

jerr0328 commented 3 years ago

I want to point out that users on corporate Macs with MDM might not be able to open QGIS without notarization. I've faced this issue, the ctrl-click (right click) and "Open" trick does not work in this case, and there's no option for opening it in the security settings.

I'm hoping it's not too much to work to get this through the CI process. I'd be happy to help where I can.

PeterPetrik commented 3 years ago

since notarization also requires a bunch of other (stricter) security rules for shared libraries, it may or may not be difficult. I think the task to make notarization happen could be anything between 2 days to 2 weeks of work

luktomaszewski commented 3 years ago

Hi, are you going to resolve this issue? I know that workaround exists, but my question is if you are going to do in "legit" way?

PeterPetrik commented 3 years ago

QGIS.org granted funds for 2021 to solve this issue. Luckily macOS will cooperate with me and we can solve it in the following months

Smastorm commented 1 year ago

The shift+open works as a workaround. Thanks

lemrm commented 1 year ago

This workaround nor open in Privacy isn't working for me. Do I have an other option?

Yes, in Terminal sudo spctl --master-disable did the trick