1
1

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 SonomaにしたらGitが動かなくなった

Posted at

macOSのアップデートをするとGitが動かなくなる現象ありますが、今回も発生しました。

macOSのアップデートと環境

今回はv14 Sonomaのアップデートですが、に記事を書いた時などと違ってMabBookのマシン自体が違うので少し前提が違うかもしれません。

  • MacBook Air M2
  • Xcodeがインストール済
  • macOS Sonoma

昔はXcodeは入れずにコマンドラインツールだけ使っていました。

出たエラー

You have not agreed to the Xcode and Apple SDKs license. You must agree to the license below in order to use Xcode.
Press enter to display the license:

とのことでライセンス認証というか同意しろみたいな感じでした。

調べると

sudo xcodebuild -license

とコマンド実行することで回避できそうな記事がよく出てきますが、こちらでは僕の環境では特に変化がなかったです。

Xcode起動からのボタンでいけた

もしかしたらXcodeがインストールされているか否かで挙動が変わるのかもですが、OSのアップデート後にXCodeを起動して出てくる同意画面で同意することでうまくいきました。

よくある感じになってきた。

参考

1
1
0

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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?