After updating to macOS 26 beta, Homebrew shows the following error:
Error: Your Xcode (16.4) at /Applications/Xcode.app is too outdated.
Please update to Xcode 26.0 (or delete it).
Xcode can be updated from:
https://developer.apple.com/download/all/
- Go to Apple Developer Downloads
- Sign in with your Apple Developer account
- Find and download Xcode 26 beta
- Install the downloaded Xcode to Applications folder (usually named
Xcode-beta.app)
sudo xcode-select -s /Applications/Xcode-beta.app/Contents/Developer# Show the path of currently active Xcode
xcode-select -pExample output:
- When beta version is selected:
/Applications/Xcode-beta.app/Contents/Developer - When regular version is selected:
/Applications/Xcode.app/Contents/Developer
sudo xcode-select -s /Applications/Xcode.app/Contents/DevelopermacOS 26 betaにアップデート後、Homebrewで以下のエラーが発生:
Error: Your Xcode (16.4) at /Applications/Xcode.app is too outdated.
Please update to Xcode 26.0 (or delete it).
Xcode can be updated from:
https://developer.apple.com/download/all/
- Apple Developer Downloads にアクセス
- Apple Developer アカウントでログイン
- Xcode 26 beta を探してダウンロード
- ダウンロードしたXcodeをApplicationsフォルダにインストール(通常は
Xcode-beta.appという名前)
sudo xcode-select -s /Applications/Xcode-beta.app/Contents/Developer# 現在アクティブなXcodeのパスを表示
xcode-select -p出力例:
- ベータ版を選択している場合:
/Applications/Xcode-beta.app/Contents/Developer - 通常版を選択している場合:
/Applications/Xcode.app/Contents/Developer
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer