Fix the developer verification error in macOS
By default, macOS will not run an application or tool downloaded from the Internet unless it is signed by an identified developer and notarized by Apple. The macOS builds of ClickHouse are signed with the Developer ID of ClickHouse Inc. and notarized by Apple, starting with the 26.7.4 release (and in every 26.8 and later release). They are published on the GitHub releases page asclickhouse-macos.zip (Intel) and clickhouse-macos-aarch64.zip (Apple silicon), and the Homebrew cask installs them. If you use one of these, macOS runs clickhouse without any warning, and you don’t need anything from this article.
You may still see the error if you run an unsigned binary that macOS has quarantined, for example:
- an older ClickHouse release installed with Homebrew - run
brew upgrade --cask clickhouseto get the signed one; - the self-extracting
clickhouse-macosorclickhouse-macos-aarch64binary from the GitHub releases page, downloaded with a web browser - download the.zipfile of the same release instead; - a release older than 26.7.4, downloaded with a web browser.
curl https://clickhouse.com/ | sh is not signed, but curl does not quarantine the files it downloads, so macOS runs it without this error.
When attempting to run a quarantined clickhouse binary, you may see this error:
If you can’t switch to a signed build, remove the binary from the quarantine, either in System Settings or in the terminal.
System Settings process
-
Try to run the
clickhousebinary once, so that macOS shows the error above and records the blocked binary. - Open System Settings.
- Navigate to Privacy & Security:
- Scroll down to the Security section to find a message saying that “clickhouse-macos-aarch64” was blocked from use because it is not from an identified developer.
- Click Allow Anyway (Open Anyway in recent macOS versions).
- Enter your macOS user password.
clickhouse commands in your terminal. macOS may ask you to confirm once more on the next run.
Terminal process
If the button in System Settings doesn’t fix the issue, or you prefer the command line, remove the quarantine attribute from the binary withxattr.
If clickhouse is in your PATH, find out where it is:
clickhouse from the quarantine by running xattr -d com.apple.quarantine followed by the path from the previous command:
clickhouse executable: