9
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

macOS Version 13.0 Venturaで Homebrew をアップデートした際に躓いた点と解決法

Posted at

お、OSのアップデート来てるやん。ポチー

こんにちは、けこです。軽率なアップデートは混乱を(自分に)招く。
またやってしまいましたが親切な記事のおかげで解決したので共有の意味を含めて記事を書くことにしました。

今回の出来事

gitでリポジトリをcloneしようとしたところ、gitが入っていないと怒られる。

~/Desktop/Routine $ git clone https://github.com/keko5342/Daily-production.git
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
~/Desktop/Routine $ git
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

gitをbrewで入れようとしても怒られる

~/Desktop/Routine $ brew install git
Warning: You are using macOS 13.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
pre-release version.

Error: No developer tools installed.
Install the Command Line Tools:
  xcode-select --install

Error: 'git' must be installed and in your PATH!
Warning: You are using macOS 13.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
pre-release version.

Error: No developer tools installed.
Install the Command Line Tools:
  xcode-select --install

こちらxcode-select --installを実行しても動作するようにならなかったため、

以下の記事を参考に、
https://zenn.dev/tyamahori/articles/56188e6ede0306

  1. https://developer.apple.com/download/all/ にアクセスして、Command Line Tools for Xcode 14.1 Release Candidate 2 をダウンロード&インストール
  2. brew updradeを実行

したところ解決しました。原因はxcodeのコマンドラインツールが古かったことが原因なので先のコマンドでも解決するはずなのですが、解決しない方がいる場合はお試しください。

9
2
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?