[Git] Mac์์ xcrun error ํด๊ฒฐ
์๋ฌ
์ด์ ์ค๋๋ง์ ๊ฐ์ธ ์ปดํจํฐ๋ฅผ ์ ๋ฆฌํ ์ฌ์ ๊ฐ ์์ด์ ํด๋์ ํ์ผ๋ค์ ์ ๋ฆฌํ๊ณ Mac OS๋ฅผ ์ ๋ฐ์ดํธ๋ฅผ ํ์ต๋๋ค. ๊ทธ๋ฆฌ๊ณ ์ค๋ ์๊ณ ๋ฆฌ์ฆ ๋ฌธ์ ๋ฅผ ํ์ด๋ณด๋ ค ํ๋ค๊ฐ VS Code๋ฅผ ์คํํ๋ ์๋์ ๊ฐ์ด ๋ด์ต๋๋ค.
Unable to find a Git executable. Either: Set the Visual Studio Code Setting "git.path" to the path and filename of an existing Git executable, or install Git and restart Visual Studio Code.
ํฐ๋ฏธ๋์ ๋ค์ด๊ฐ๋ xcrun error ๋๋ฌธ์ธ ๊ฒ์ ์ ์ ์์์ต๋๋ค.
[oh-my-zsh] Can't update: not a git repository.
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools),
missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ํด๊ฒฐ
์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๊ธฐ ์ํด xcode๋ฅผ ์ค์นํด์ฃผ์์ต๋๋ค.
xcode-select --install ์ ์ ๋ ฅํ๋ฉด ์๋์ ๊ฐ์ด ์ค์นํ์๊ฒ ๋๋ ํ๋ฉด์ด ๋จ๋ฉด์ ์ค์น๊ฐ ์์๋ฉ๋๋ค.
์ค์น๋ฅผ ํ๊ณ ๋๋ git์ ๋น๋กฏํ ๊ฐ๋ฐํด๋ค์ด ์ ์์ ์ผ๋ก ์๋ํ์ต๋๋ค.