๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
IT-Engineering/Mac

๊ฐ‘๋ถ„ mac terminal(iTerm) ์—๋Ÿฌ ๋ฐœ์ƒ : xcrun error invalid active developer path

by ๐Ÿงž‍โ™‚๏ธ 2024. 3. 20.
๋ฐ˜์‘ํ˜•

๊ฐ‘์ž๊ธฐ git ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•˜๋Š”๋ฐ ์•„๋ž˜์™€ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค.
ํ˜น์‹œ๋‚˜ ๊ฐ‘์ž๊ธฐ ์ž˜ ๋˜๋˜ ํ„ฐ๋ฏธ๋„ ๋ช…๋ น์–ด๊ฐ€ ๋งฅ(mac)์—์„œ ์ž‘๋™ํ•˜์ง€ ์•Š๋Š” ๋ถ„๋“ค๊ป˜ ๋„์›€์ด ๋ ๊นŒํ•˜์—ฌ ๊ธ€์„ ์ ์–ด๋ณธ๋‹ค.

% git
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

์ด์œ ๋ฅผ ์•Œ์•„๋ณด๋‹ˆ Xcode Command Line Tools๊ฐ€ ์ œ๋Œ€๋กœ ์„ค์น˜๋˜์ง€ ์•Š์•˜๊ฑฐ๋‚˜ ์—…๋ฐ์ดํŠธ ํ›„ ๊ฒฝ๋กœ๊ฐ€ ๋ณ€๊ฒฝ๋˜์–ด ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ๋‹จ๋‹ค. macOS๋ฅผ ์ตœ๊ทผ์— ์—…๋ฐ์ดํŠธ ํ•˜๊ณ  ๋‚˜์„œ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•œ ๋“ฏ์‹ถ๋‹ค.

ํ•ด๊ฒฐ์ฑ…์€ ์•„๋ž˜์™€ ๊ฐ™๋‹ค.

xcode-select --install

ํ•ด๋‹น ๋ช…๋ น์–ด ์ž…๋ ฅ ์ดํ›„ ํŒ์—…์ฐฝ์—์„œ ์„ค์น˜๋ฅผ ์ง„ํ–‰ํ•˜๋ฉด ์ž˜ ํ•ด๊ฒฐ๋œ๋‹ค.

์ด๋Ÿฐ ์—๋Ÿฌ๋“ค์„ ๋งˆ์ฃผํ•  ๋•Œ๋งˆ๋‹ค, ์ฐธ์œผ๋กœ ์ปดํ“จํ„ฐ๋Š” ์˜์›ํžˆ ์—๋Ÿฌ์™€ ๋ฒ„๊ทธ์™€์˜ ์‹ธ์›€์ด๊ตฌ๋‚˜ ์‹ถ๋‹ค.

๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€