utmの中で動くmac(sequoia)でbrew doctorの警告回避

去年にsequoiaが動くmac m4を使い始めて、vmwareの代わりにutm入れてさらにsequoiaを稼働させるようにした。

utmの中のsequoiaは前に使ってたintel macからデータ引越してるんやけど、ずっと放置してた警告No Cask quarantine support available: unknown reasonを回避してみた。

utmをホストしてるmac miniではこの問題発生せんかったし、intelからm4に引っ越してbrew使い続けたときだけ出るエラーなんとちゃうかなぁ。

警告の内容

こんなん出てた。

nari@gvis-mac script % 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: No Cask quarantine support available: unknown reason. ⭐️何だチミは
nari@gvis-mac script %

brewの状態はこんな感じ。brewはrubyで実装やったな。

nari@gvis-mac script % brew config 
HOMEBREW_VERSION: 4.5.7
ORIGIN: https://github.com/Homebrew/brew
HEAD: 6301c2d31f8dc07d2d16ddaa33711cf5a41d4e17
Last commit: 2 days ago
Branch: stable
Core tap JSON: 16 Jun 17:11 UTC
Core cask tap JSON: 16 Jun 17:11 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 6
Homebrew Ruby: 3.4.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.4.4/bin/ruby
CPU: hexa-core 64-bit dunno
Clang: 17.0.0 build 1700
Git: 2.49.0 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.5-arm64
CLT: 16.4.0.0.1.1747106510
Xcode: N/A
Rosetta 2: false
nari@gvis-mac script %

解決方法の参考

ググると同じことで困ってる人いた。

Doctor: "Warning: No Cask quarantine support available: unknown reason" · Homebrew · Discussion #5482
Output of brew config HOMEBREW_VERSION: 4.3.9 ORIGIN: HEAD: 1c98a33a376e5b35ebc801d0f7d6ba7b9eb118ac Last commit: 3 days...

全然使ってる意識ないけど、macの中にcommand line tools for xcodeってのが入ってるらしい。CLTっていうんかいな。

これをいったん全削除して入れ直したらええんやて。

sudo rm -rf /Library/Developer/CommandLineTools/

解決前の準備

まずはbrewで更新やっとく。いろいろやってくれるように小さな処理を常用。

nari@gvis-mac script % cat 810_MacBrewUpdate.sh 
#!/bin/sh
## -------------------------------------------------------------------------
## Script Name  : 810_MacBrewUpdate.sh
##  Created by  : T.Naritomi
##          on  : 2023.02.03
##  Updated by  : 2025.01.16
##          on  :
##  Parameters  : 
##  Return Code : 0=Normal End
##     Comments :
## -------------------------------------------------------------------------

## ---detail---------------------------------------------------------------- 

echo "######## GVIS brew ########" `date +%F_%T`
echo "########  doctor   ########"
brew doctor
echo "########  update   ########"
brew update
brew upgrade --cask --greedy
echo "########  upgrade  ########"
brew upgrade
echo "########  cleanup  ########"
brew cleanup
echo "######## GVIS end  ########" `date +%F_%T`

exit
nari@gvis-mac script % 
nari@gvis-mac script % sh ./810_MacBrewUpdate.sh 
######## GVIS brew ######## 2025-06-17_02:58:20
########  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: No Cask quarantine support available: unknown reason.
########  update   ########
==> Updating Homebrew...
Already up-to-date.
########  upgrade  ########
########  cleanup  ########
######## GVIS end  ######## 2025-06-17_02:58:29
nari@gvis-mac script % 

解決

utmで稼働させてるsequoiaやから失敗しても巻き戻せるし削除してみた。
GUIのインストーラ出てきたのにハードコピー取り忘れた・・・。

nari@gvis-mac script % sudo rm -rf /Library/Developer/CommandLineTools/ ⭐️一瞬固まるように見えるけど、削除はできる

nari@gvis-mac script % 
nari@gvis-mac script % 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: No Cask quarantine support available: unknown reason.

Warning: No developer tools installed. ⭐️ここでGUIのインストーラが勝手に出てくるから入れとく
Install the Command Line Tools:
  xcode-select --install

nari@gvis-mac script % 
nari@gvis-mac script % 
nari@gvis-mac script % brew doctor 
Your system is ready to brew. ⭐️治ったな
nari@gvis-mac script % 

入れた後、アップデートあるらしかったからそのままインストールして終わり。

gvis-CLTforXcode

これで警告消えた。