Skip to content

macOS26で動作しなくなったyabaiを動作させる

macOS上で仮想デスクトップの切り替えにはyabaiskhdを使っています。

ただ、macOSの新しいバージョンがリリースされる度「yabaiが動作しなくなる」現象が発生し、アップデート待ちになります。つい先日、macOS Tahoeがリリースされましたが案の定、yabaiが動作しなくなりました… ですが今回は以下のissueに書かれている一時解決策を実行することでyabaiが動作したので、手順をメモしておきます。

検証環境

対象 バージョン
macOS Tahoe 26.0

動作しなくなったyabai

macOS Tahoe 26.0へバージョンアップした際に動作しなくなったyabaiのバージョンは以下でした。現時点ではこれより新しい安定バージョンはリリースされていません。

% brew info yabai
==> koekeishiya/formulae/yabai: stable 7.1.15, HEAD
A tiling window manager for macOS based on binary space partitioning.
https://github.com/koekeishiya/yabai
Installed
/opt/homebrew/Cellar/yabai/7.1.15 (7 files, 1.7MB)
  Built from source on 2025-05-19 at 07:31:35
From: https://github.com/koekeishiya/homebrew-formulae/blob/HEAD/yabai.rb
==> Requirements
Required: macOS >= 11 (or Linux)==> Options
--HEAD
    Install HEAD version
==> Caveats
Copy the example configuration into your home directory:
  cp /opt/homebrew/opt/yabai/share/yabai/examples/yabairc ~/.yabairc
  cp /opt/homebrew/opt/yabai/share/yabai/examples/skhdrc ~/.skhdrc

If you want yabai to be managed by launchd (start automatically upon login):
  yabai --start-service

When running as a launchd service logs will be found in:
  /tmp/yabai_<user>.[out|err].log

If you are using the scripting-addition; remember to update your sudoers file:
  sudo visudo -f /private/etc/sudoers.d/yabai

Build the configuration row by running:
  echo "$(whoami) ALL=(root) NOPASSWD: sha256:$(shasum -a 256 $(which yabai) | cut -d " " -f 1) $(which yabai) --load-sa"

README: https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(latest-release)#configure-scripting-addition

一時解決策でyabaiを動作させる

Space switching does not work after MacOS 26 update #2676の冒頭にある「Temp solution」にまとまっていますが、macOSのCLIから以下を実行します。実行する途中で「yabaiへアクセス権限を付与して良いか?」というダイアログが表示されるので、権限を付与します。

brew unlink yabai
brew uninstall yabai
brew install yabai --HEAD
echo "$(whoami) ALL=(root) NOPASSWD: sha256:$(shasum -a 256 $(which yabai) | cut -d " " -f 1) $(which yabai) --load-sa" | sudo tee /private/etc/sudoers.d/yabai
sudo yabai --load-sa
yabai --restart-service

コマンドの実行が完了したらOSごと再起動します。これでmacOS Tahoe 26.0上でyabaiが動作するようになりました!