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

Apple will not allow QGIS on macOS to open / unverified developer #55663

Open
2 tasks done
wnrand opened this issue Dec 19, 2023 · 31 comments
Open
2 tasks done

Apple will not allow QGIS on macOS to open / unverified developer #55663

wnrand opened this issue Dec 19, 2023 · 31 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! macOS

Comments

@wnrand
Copy link

wnrand commented Dec 19, 2023

What is the bug or the crash?

I have been going around on this for several weeks now, trying various previous suggestions to get MacOS X to allow me to open QGIS. I have talked to our IT department and Apple and both keep referring me back to QGIS to solve this issue.

Control-click to select "Open" does not work (even for the first time opening with a fresh install.) Clicking "Open anyway" does not work. Rebooting into safe mode does not fix the issue. I believe I tried the hint to use a terminal script and that did not work either. Is there any other option to get QGIS to launch on Mac?

Screen Shot 2023-11-28 at 3 23 58 PM

Steps to reproduce the issue

Navigate to QGIS application
Control-click to bring up context menu, select "Open"
Error message pops up that says "“QGIS” cannot be opened because the developer cannot be verified."
Navigate to System preferences, open "Security & Privacy"
Click "Open Anyway" button on "General" tab
Back to error message

Versions

QGIS 3.34.1-Prizren

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

I fully deleted all QGIS supporting files before doing a fresh installation with no change in behavior

@agiudiceandrea
Copy link
Contributor

agiudiceandrea commented Dec 19, 2023

@wnrand, could you please specify if you have followed the instruction displayed on the Download page?

After installing QGIS, the first launch attempt may fail due to security protections. To enable QGIS, control-click on its icon in your Applications folder and select Open in the context menu. A confirmation dialog will display where you need to click the Open button again. This only has to be done once.

image

Does the issue occur trying to install QGIS or trying to launch QGIS after installation?

Please also specify what is the exact version of your OS and how did you download the QGIS installer.

@pathmapper
Copy link
Contributor

Here are some infos from Apple: https://support.apple.com/HT202491#openanyway

Copy link

github-actions bot commented Jan 5, 2024

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale".
If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Jan 5, 2024
Copy link

github-actions bot commented Feb 3, 2024

While we hate to see this happen, this issue has been automatically closed because it has not had any activity in the last 42 days despite being marked as feedback. If this issue should be reconsidered, please follow the guidelines in the previous comment and reopen this issue.
Or, if you have any further questions, there are also further support channels that can help you.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 3, 2024
@jackvaughanjr
Copy link

jackvaughanjr commented Feb 7, 2024

@wnrand, could you please specify if you have followed the instruction displayed on the Download page?

I have tried the instructions using both the LTS and most recent versions.
Additionally, I've opened Privacy & Security and clicked Open Anyway there. Same result.

Does the issue occur trying to install QGIS or trying to launch QGIS after installation?

This occurs when trying to launch QGIS after installation.

Please also specify what is the exact version of your OS and how did you download the QGIS installer.

Currently running Sonoma 14.1.2 and I downloaded directly from the site.

@github-actions github-actions bot removed the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Feb 7, 2024
@agiudiceandrea agiudiceandrea reopened this Feb 7, 2024
@agiudiceandrea
Copy link
Contributor

agiudiceandrea commented Feb 7, 2024

@jackvaughanjr, thanks. It would be very useful if you indicated in detail all the steps followed and what went wrong and the exact error messages, in respect to the available instruction available on qgis.org, in order to try to fix the issue and then provide better instructions.

Copy link

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale".
If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Feb 22, 2024
@wnrand
Copy link
Author

wnrand commented Mar 1, 2024

@wnrand, could you please specify if you have followed the instruction displayed on the Download page?

After installing QGIS, the first launch attempt may fail due to security protections. To enable QGIS, control-click on its icon in your Applications folder and select Open in the context menu. A confirmation dialog will display where you need to click the Open button again. This only has to be done once.

image

Does the issue occur trying to install QGIS or trying to launch QGIS after installation?

Please also specify what is the exact version of your OS and how did you download the QGIS installer.

I gave up trying to get the new QGIS to work and went back to using the old version that Mac OS would allow to launch.

I tried all those options. I deleted the old install a few times, reinstalled the newest version fresh and then -- first thing -- try and open QGIS with the control-click and select "Open". It never worked.

I am now on a new workstation and trying to get any QGIS to work and am still getting the same error when first trying to launch QGIS. No option is given to continue. System preferences/Security/General does not allow it to continue launching either

Screen Shot 2024-03-01 at 3 20 52 PM

@github-actions github-actions bot removed the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Mar 1, 2024
@wnrand
Copy link
Author

wnrand commented Mar 1, 2024

Here are some infos from Apple: https://support.apple.com/HT202491#openanyway

Thank you. I have tried following that but it does not behave as the article says it should. I click "Open anyway" and it relaunches QGIS and leads back to the error message that QGIS cannot be opened. I can keep looping that way with no success at launching QGIS.

@wnrand
Copy link
Author

wnrand commented Mar 1, 2024

I had given up on trying to solve this issue and decided to just use the old version of QGIS that I had been able to install previously. But my workstation died last week and I'm now trying to get any version of QGIS to launch on the new workstation I have been given. I tried a fresh install and first action was to use the control-click to get the contextual menu and then choose "Open". But Mac OS does not give me the option to continue and the system preferences in the Security tab only trys to relaunch QGIS when I click "Open Anyway". I have found no way around this. Are there any other ideas for a way to get Mac OS to allow QGIS to launch?
Uploading Screen Shot 2024-03-01 at 3.20.52 PM.png…

@chris-prener
Copy link

I ran into this problem today - I work on a macOS machine that is managed by my employer. Our profiles are set to only allow installations from identified developers. I end up in the same loop that @wnrand does - there is no way to open QGIS when this security requirement is being enforced at the enterprise level. Our IT folks told me that my two options are to get the QGIS team to participate in the Apple identified developer program or use ArcGIS. Would love to hear if this is something that could be added to your roadmap!

image

Copy link

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale".
If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Mar 22, 2024
@DoZiBo1
Copy link

DoZiBo1 commented Apr 11, 2024

I ran into this problem today - I work on a macOS machine that is managed by my employer. Our profiles are set to only allow installations from identified developers. I end up in the same loop that @wnrand does - there is no way to open QGIS when this security requirement is being enforced at the enterprise level. Our IT folks told me that my two options are to get the QGIS team to participate in the Apple identified developer program or use ArcGIS. Would love to hear if this is something that could be added to your roadmap!

I have the exact same problem. The suggested fixes from QGIS website simply do not work.

@github-actions github-actions bot removed the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Apr 11, 2024
@agiudiceandrea
Copy link
Contributor

@DoZiBo1, are you using a macOS machine that is managed by your employer?

@DoZiBo1
Copy link

DoZiBo1 commented Apr 11, 2024

@agiudiceandrea Yes. Support department says it needs to be signed. No way for me to circumvent it.
QGIS support page here even claims to provide "signed installers" for macOS, which does not seem to be true. I can find no further reference which version is signed.

@agiudiceandrea
Copy link
Contributor

agiudiceandrea commented Apr 11, 2024

@DoZiBo1, AFAIK the macOS dmg installer is signed by the "Developer ID Application: Open Source Geospatial Foundation (4F7N4UDA22)" identity, while the macOS dmg installer is not "notarized".

See the log at https://download.qgis.org/downloads/macos/qgis-macos-ltr.latest.log

config for QGIS 3.34.5
config loaded OK
�[34;01mPrint identities�[39;49;00m
  1) BE0D9DD7BAD99E1AFE8E616E3D02336B382A205F "Developer ID Application: Open Source Geospatial Foundation (4F7N4UDA22)"
     1 valid identities found
�[34;01mSigning the QGIS-LTR.app�[39;49;00m
/Users/admin/qgis/builds/ltr/bundle/QGIS-LTR.app: signed app bundle with Mach-O thin (x86_64) [org.qgis.qgis3]
�[34;01mCreate dmg image�[39;49;00m
�[34;01mAdd license to dmg�[39;49;00m
Adding EULA
Created license /var/folders/kg/m1ksgth50bs7krlsy56c8kd00000gq/T/dmglicense.tmp.XXXXXXXXXX.7N0kIo64
Successfully added the EULA license to /Users/admin/qgis/builds/ltr/build/..//qgis_ltr_final-3_34_5_20240322_163526.dmg
�[34;01mSigning the dmg�[39;49;00m
/Users/admin/qgis/builds/ltr/build/..//qgis_ltr_final-3_34_5_20240322_163526.dmg: signed  []
�[34;01mCreate checksum�[39;49;00m
�[34;01mDmg created with size 1.6G /Users/admin/qgis/builds/ltr/build/..//qgis_ltr_final-3_34_5_20240322_163526.dmg�[39;49;00m
All done (qgis-mac-packager.bash)
SUCCESS

@DoZiBo1
Copy link

DoZiBo1 commented Apr 11, 2024

@agiudiceandrea I don't know what this means. Can you translate this into a conclusion? Does it mean, it's signed but in the wrong way/improperly, or it is not signed in all the necessary places? Or is it signed and the problem lies elsewhere?

@agiudiceandrea
Copy link
Contributor

agiudiceandrea commented Apr 11, 2024

@DoZiBo1, probably your support department would mean to say that the installer needs to be "notarized". AFAIK the QGIS dmg installer is only signed, not "notarized". I think the sys admins can actually allow to install the QGIS dmg signed installer on you system, but their policy is probably to only allow "notarized" installers.
If the package management system "MacPorts" is allowed on your system, then you can install QGIS via MacPorts: see https://qgis.org/en/site/forusers/alldownloads.html#macports.

@DoZiBo1
Copy link

DoZiBo1 commented Apr 11, 2024

@agiudiceandrea Thank you for clarification. If I see this correctly, there is already open issues regarding notarization of QGIS: issue 218 which refers to issue 270 where the necessary work is supposed to be included.

Copy link

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale".
If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Apr 26, 2024
@agiudiceandrea agiudiceandrea removed Feedback Waiting on the submitter for answers stale Uh oh! Seems this work is abandoned, and the PR is about to close. labels Apr 26, 2024
@DanGunnStudio
Copy link

Same issue. Extremely frustrating.

@greg-vernon
Copy link

It is not really reasonable to be asking users to install packages that go around the security measures that are built into MacOS. At best it's sloppy, at worst a system could be potentially compromised. There is also the case of failing a security audit if you're in a company that requires auditing.

I worked at a CA for a number of years, and I've also got some experience with dealing with Apple dev stuff and packaging. If I can help out somehow with getting this fixed, I'd be happy to help.

@BiosPlus
Copy link

Same issue here, I have users who would like to install the application though the signing and notarisation issues are a blocker in terms of application security.

@tatjabecker
Copy link

I am not sure if it is the correct thing to do, but what helped me solve this issue was changing my security & privacy settings. In Accessibility I added QGIS to the list of apps that are allowed to control my computer. Then in the Security & Privacy settings, where it states that QGIS is blocked you can click "Open anyway". Voila it opened! Maybe the first step was not necessary, because I wasn't paying attention if the "Open anyway" option was available, nevertheless it is worth to try these two steps if you haven't already.

@greg-vernon
Copy link

I am not sure if it is the correct thing to do, but what helped me solve this issue was changing my security & privacy settings. In Accessibility I added QGIS to the list of apps that are allowed to control my computer. Then in the Security & Privacy settings, where it states that QGIS is blocked you can click "Open anyway". Voila it opened! Maybe the first step was not necessary, because I wasn't paying attention if the "Open anyway" option was available, nevertheless it is worth to try these two steps if you haven't already.

You can definitely make things work this way. However, from a security standpoint, it's not really the right way to be doing things.

@aileenclarke
Copy link

I'm having the same issue on an employer controlled Mac. Does anyone know what the newest version of QGIS is that doesn't cause this problem? I'm stuck on 3.16 for now.

@kentr
Copy link

kentr commented Jul 9, 2024

Possibly related to #55930.

I agree with others that it's unreasonable to require users to bypass the OS security features. I won't even do this on my own computer in most cases.

@miceg
Copy link

miceg commented Jul 17, 2024

If the package management system "MacPorts" is allowed on your system, then you can install QGIS via MacPorts:

From that page:

Concurrent installation of Homebrew and MacPorts is not compatible and will almost certainly lead to conflicts. If you choose to install one of the package systems you need to uninstall the other.

For Homebrew users, this is obviously a non-starter. 😉

There is an important difference between their respective QGIS packages:

  • MacPorts builds everything from source.

    This effectively side-steps signing and notarisation requirements by signing binaries with a local certificate on your machine as part of the build process.

  • Homebrew's QGIS Cask simply grabs the qgis.org macOS build – so has all the same issues (unnotarised and Intel-only).

    It would be possible for Homebrew to build packages from source like MacPorts does (with a Formula), it just doesn't here.

I don't think that building everything from source is the right answer, because installing and updating is slooowwwwwww.

FWIW while the Conda-based packages look promising, they're also unsigned and unnotarised at the moment.

I haven't tried going down the "normal" Conda path to see if those are actually signed or notarised – it looks extremely heavy weight.

@Newkid76
Copy link

Hey everyone, I had the same issue as I was trying to install the latest version in my company's mac and this fixed it:

  1. Go to settings
  2. Privacy & Security
  3. Scroll down until Security
  4. You will see the blocked section called "Allow applications downloaded from": "App Store" and "App Store and identified developers" - you will not be able to do anything here
  5. But below, you will see a message about QGIS that you'll need to approve (by adding your password)

@BiosPlus
Copy link

@Newkid76, Your company Mac administrator doesn't seem to push a strict gatekeeper policy. On devices where we push a gatekeeper policy there is no work around aside from xattr.

@justinbb
Copy link
Contributor

justinbb commented Oct 2, 2024

@greg-vernon QGIS on Mac has had some problems for a few years now. You may have noticed that complaints fall into two broad categories, lack of notarization (as here) and out-of-date components / missing Apple Silicon binaries. The two categories are unfortunately intertwined.

There was an attempt made to produce a compilant Mac QGIS bundle a few years ago: the result was QGIS-Mac-Packager. The project was too broad in its aims, then fell far short of them. It is in two parts:

  • a custom dependency manager which cannot be updated (the root cause for the numerous bug reports about out-of-date components, lack of Apple Silicon binaries, etc.)
  • a bundler + installer-maker. The bundle thus produced is signed but it is not eligible for notarization.
    QGIS-Mac-Packager is still used to produce the downloadable Mac installers on the QGIS site.

On dependency management / creation of a working executable:
QGIS-Mac-Packager's dependency manager part, obsolete and unmaintainable, has to be replaced.
More recently, @m-kuhn made an alternative conda-based Mac installer which is functional but does not seem to have been found fully satisfactory.
The QGIS installation guide has recommended MacPorts for some time now, which is a good basis for Mac QGIS users with the permission and ability to manage MacPorts – only a part of the user community.
There has been a proposal to move to Microsoft vcpkg for Windows builds, a cross-platform solution which would likely give good results on Mac as well.
Any of these methods are (either theoretically or in reality) capable of getting together the code and resources to make an up-to-date, working QGIS with Apple Silicon binaries. But they still don't solve the notarization problem.

On organizing and notarizing the bundle:
Organizing the bundle so it can be notarized is a non-trivial problem, as notarization requires strict separation of code and data. The QGIS-Mac-Packager's bundling part might be able to serve as the basis for a better Mac bundle (I haven't dared look). There is further discussion (including links to documentation, history, etc.) at qgis/QGIS-Mac-Packager#160.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! macOS
Projects
None yet
Development

No branches or pull requests