LoginSignup
2
1

More than 5 years have passed since last update.

Xcodeをアンインストールしたらgitが使えなくなった

Posted at

概要

swiftでの開発をしなくなったので、Xcodeを削除したらいきなりgitが使えなくなったので解決法のメモです。

エラー内容

error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist

解決法

参考ブログの項目に記載している記事のコマンドをコピペしたら解決したので、コマンドのみ記載します。
専門分野外のことは解決すれば内容は気にならないタイプなので、詳しく知りたい方は参考ブログを御覧ください。

$ sudo xcode-select -switch /Library/Developer/CommandLineTools
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew install git

参考ブログ

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