Skip to content

"claude" not Opened: Apple could not verify "claude" is free of malware that may harm your Mac #224670

Description

@corneliusroemer

Verification

Description of issue

After brew install --cask claude-code when I type claude I get an error message

"claude" not Opened: Apple could not verify "claude" is free of malware that may harm your Mac

Image

Command that failed

claude

Output of command with --verbose --debug

brew install --cask claude-code --verbose --debug
/opt/homebrew/Library/Homebrew/brew.rb (Cask::CaskLoader::FromAPILoader): loading claude-code
==> Cask::Installer#install
==> Printing caveats
==> Caveats
Claude Code's auto-updater installs updates to `~/.local/bin/claude` and
not to Homebrew's location. It is recommended to disable the auto-updater
with either `DISABLE_AUTOUPDATER=1` or
`claude config set -g autoUpdates false` and use
`brew upgrade --cask claude-code`.

==> Cask::Installer#fetch
==> Downloading https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/1.0.85/darwin-arm64/claude
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.6.4-89-gfc85e05\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 15.6\)\ curl/8.7.1 --header Accept-Language:\ en --retry 3 -V
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.6.4-89-gfc85e05\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 15.6\)\ curl/8.7.1 --header Accept-Language:\ en --retry 3 --fail --location --silent --head https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/1.0.85/darwin-arm64/claude
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.6.4-89-gfc85e05\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 15.6\)\ curl/8.7.1 --header Accept-Language:\ en --retry 3 --fail --location --silent --head --request GET --http1.1 https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/1.0.85/darwin-arm64/claude
Already downloaded: /Users/cr/Library/Caches/Homebrew/downloads/a3aad4f8234059a7c86b5ef0f7668ad914282bff8b2bf626441672dc01fd57f1--claude
==> Checking quarantine support
/usr/bin/env /usr/bin/xattr -h
/usr/bin/env /Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -target arm64-apple-macosx15 /opt/homebrew/Library/Homebrew/cask/utils/quarantine.swift
==> Quarantine is available.
==> Verifying Gatekeeper status of /Users/cr/Library/Caches/Homebrew/downloads/a3aad4f8234059a7c86b5ef0f7668ad914282bff8b2bf626441672dc01fd57f1--claude
/usr/bin/env /usr/bin/xattr -p com.apple.quarantine /Users/cr/Library/Caches/Homebrew/downloads/a3aad4f8234059a7c86b5ef0f7668ad914282bff8b2bf626441672dc01fd57f1--claude
==> /Users/cr/Library/Caches/Homebrew/downloads/a3aad4f8234059a7c86b5ef0f7668ad914282bff8b2bf626441672dc01fd57f1--claude is quarantined
==> Verifying checksum for 'a3aad4f8234059a7c86b5ef0f7668ad914282bff8b2bf626441672dc01fd57f1--claude'
/usr/bin/env hdiutil imageinfo -format /Users/cr/Library/Caches/Homebrew/downloads/a3aad4f8234059a7c86b5ef0f7668ad914282bff8b2bf626441672dc01fd57f1--claude
==> Installing Cask claude-code
==> Cask::Installer#stage
==> Extracting primary container
==> Using container class UnpackStrategy::Uncompressed for /Users/cr/Library/Caches/Homebrew/downloads/a3aad4f8234059a7c86b5ef0f7668ad914282bff8b2bf626441672dc01fd57f1--claude
cp -p /Users/cr/Library/Caches/Homebrew/downloads/a3aad4f8234059a7c86b5ef0f7668ad914282bff8b2bf626441672dc01fd57f1--claude /opt/homebrew/Caskroom/claude-code/1.0.85/claude
==> Verifying Gatekeeper status of /Users/cr/Library/Caches/Homebrew/downloads/a3aad4f8234059a7c86b5ef0f7668ad914282bff8b2bf626441672dc01fd57f1--claude
/usr/bin/env /usr/bin/xattr -p com.apple.quarantine /Users/cr/Library/Caches/Homebrew/downloads/a3aad4f8234059a7c86b5ef0f7668ad914282bff8b2bf626441672dc01fd57f1--claude
==> /Users/cr/Library/Caches/Homebrew/downloads/a3aad4f8234059a7c86b5ef0f7668ad914282bff8b2bf626441672dc01fd57f1--claude is quarantined
==> Propagating quarantine from /Users/cr/Library/Caches/Homebrew/downloads/a3aad4f8234059a7c86b5ef0f7668ad914282bff8b2bf626441672dc01fd57f1--claude to /opt/homebrew/Caskroom/claude-code/1.0.85
/usr/bin/env /usr/bin/xattr -p com.apple.quarantine /Users/cr/Library/Caches/Homebrew/downloads/a3aad4f8234059a7c86b5ef0f7668ad914282bff8b2bf626441672dc01fd57f1--claude
/usr/bin/env /usr/bin/xargs -0 -- /bin/chmod -h u+w
/usr/bin/env /usr/bin/xargs -0 -- /usr/bin/xattr -w com.apple.quarantine 0381\;68a5b1d1\;\;5078FC62-1A66-4F48-85DD-6F17F5D35175
==> Creating metadata directory: /opt/homebrew/Caskroom/claude-code/.metadata/1.0.85/20250820113429.046
==> Creating metadata subdirectory: /opt/homebrew/Caskroom/claude-code/.metadata/1.0.85/20250820113429.046/Casks
==> Installing artifacts
==> Installing artifact of class Cask::Artifact::Binary
==> Linking Binary 'claude' to '/opt/homebrew/bin/claude'
/usr/bin/env /bin/ln -h -f -s -- /opt/homebrew/Caskroom/claude-code/1.0.85/claude /opt/homebrew/bin/claude
🍺  claude-code was successfully installed!
==> No outdated dependents to upgrade!

Output of brew doctor and brew config

brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Some installed casks are deprecated or disabled.
You should find replacements for the following casks:
  chromium

Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
  hey
  tldr

Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  docker
  handbrake

Warning: Some taps are not on the default git origin branch and may not receive
updates. If this is a surprise to you, check out the default branch with:
  git -C $(brew --repo cr/local-tap) checkout

brew config
HOMEBREW_VERSION: 4.6.4-89-gfc85e05
ORIGIN: https://github.com/Homebrew/brew
HEAD: fc85e051aadd57bee48b5f9d4a34e18196647e63
Last commit: 4 hours ago
Branch: main
Core tap HEAD: 3f6f2d82af48a13789accf17f3af99f73f0874d1
Core tap last commit: 3 hours ago
Core tap JSON: 20 Aug 11:30 UTC
Core cask tap JSON: 20 Aug 11:30 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: vim
HOMEBREW_FORBID_PACKAGES_FROM_PATHS: set
HOMEBREW_MAKE_JOBS: 16
HOMEBREW_SORBET_RUNTIME: set
Homebrew Ruby: 3.4.5 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.4.5/bin/ruby
CPU: 16-core 64-bit arm_brava
Clang: 17.0.0 build 1700
Git: 2.51.0 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.6-arm64
CLT: 16.4.0.0.1.1747106510
Xcode: 16.4 => /Applications/Xcode-16.4.0.app/Contents/Developer
Rosetta 2: false

Output of brew tap

brew tap
brewsci/bio
cr/local-tap
homebrew/core
robotsandpencils/made
shaunsingh/sfmono-nerd-font-ligaturized
teamookla/speedtest
thecasualcoder/stable
tidwall/jj
tmonfre/tmonfre
ynqa/tap

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions