crc: Can't run crc setup on macOS Catalina - "the developer cannot be verified"
General information
- OS: macOS 10.15.1 Catalina
- Hypervisor: default
- Did you run
crc setupbefore starting it? Yes (but that’s where it fails)
CRC version
N/A - cannot run crc
CRC status
N/A - cannot run crc
CRC config
N/A - cannot run crc
Host Operating System
ProductName: Mac OS X
ProductVersion: 10.15.1
BuildVersion: 19B88
Steps to reproduce
- Download the CRC archive from this page (macOS HyperKit).
- Extract the archive.
- Move crc into my
$PATH(mv ~/Downloads/crc-macos-1.1.0-amd64/crc /usr/local/bin/crc) - Run
crc setup
Expected
I would be guided through the CRC setup process.
Actual
After about a minute, I see the following dialog pop up:
It reads:
“crc” cannot be opened because the developer cannot be verified.
macOS cannot verify that this app is free from malware.
Safari downloaded this file today at 9:24 AM
Logs
N/A - crc won’t run
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 2
- Comments: 15 (6 by maintainers)
My workaround is to simply remove the quarantine flag, after which crc runs without issues:
sudo xattr -d com.apple.quarantine ~/crc-macos-1.10.0-amd64/crcI usually create a symlink so that I don’t have to keeping typing in “dot” “slash” (i.e.
./crc):ln -nsf ~/crc-macos-1.10.0-amd64/crc /usr/local/bin/crcProbably related: https://github.com/hashicorp/terraform/issues/23033
Workaround is to:
open /usr/local/bin)crcin Finder.CRC (the binary—any command) seems to run very slowly under Catalina, though. Could be related to https://github.com/code-ready/crc/issues/727
So, since there’s a workaround, the question is: is it possible for CRC to be signed by a valid developer account (I believe you can get a Developer ID free with any working Apple ID, and use it to sign apps to bypass Gatekeeper) during its build process, so macOS users don’t have to go through these hoops to use it?
this is being resolved company wide, but some applications are currently in the process for this. we will hopefully soon
FYI: Could reproduce with CRC V1.4.0
Here’s how VSCode did it…maybe this helps: https://developer.apple.com/documentation/xcode/notarizing_macos_software_before_distribution
I still think that the workaround is not acceptable for many customers. So I kindly ask you to put this up in the list. Thanks a lot.
Regards, Sebastian
@geerlingguy Yes we are working on that, we will prioritise it in next sprint.