
Xcode ?
apple์ macOS, iOS, watchOS ๋ฐ tvOS์ฉ ์ํํธ์จ์ด ๊ฐ๋ฐ์ ์ํ IDE์ด๊ณ , macOS ์ ์ฉ์ด๋ค.

์ด์ ๋ฐค์ ์ํํธ์จ์ด ์ ๋ฐ์ดํธ๋ฅผ ํ ํ์,
์ค๋ ํ๋ก๊ทธ๋จ ์์ ์ ์งํํ๊ธฐ ์ํด์ vscode๋ฅผ ์คํ์์ผ๋ณด๋ error๊ฐ ๋ด๋ค.
์ค๋ฅ
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
์ ์ค๋ฅ ๋ฉ์์ง๋ Xcode Command Line Tools๊ฐ ์ค์น๋์ง ์์๊ฑฐ๋ ์ ๋๋ก ๊ตฌ์ฑ๋์ง ์์์ ๋ ๋ฐ์ํ๋ ์ค๋ฅ์ด๋ค.
Xcode Command Line Tools๋ macOS์์ ๊ฐ๋ฐ์ ๋๊ตฌ ๋ฐ ์ปดํ์ผ๋ฌ์ ์ก์ธ์คํ ์ ์๋๋ก ๋์์ฃผ๋ ๋๊ตฌ ๋ชจ์์ด๋ค.
์ค๋ฅ ํด๊ฒฐ
- ํฐ๋ฏธ๋์ ์คํ์ํจ๋ค.
- ๋ค์ ๋ช ๋ น์ ํตํด์ Xcode Command Line Tools๋ฅผ ์ค์นํด์ค๋ค.
xcode-select --install
์ ๋ช ๋ น์ ์คํํด์ Xcode Command Line Tools ๋ฅผ ์ค์นํ๊ณ ์๋ฃ๋ฅผ ๊ธฐ๋ค๋ฆฐ๋ค.

์ค์น ํ ์๋ ์์ ์ ์งํํ๋๋ ์ด์์์ด ์งํ์ด ๋์๋ค.
์ค์น ํ ์ค๋ฅ ๋ฐ์์
์ค์น ํ์๋ ์ค๋ฅ๊ฐ ์ง์์ด ๋๋ค๋ฉด, ๋ค์ ์ฝ๋๋ฅผ ํตํด์ Xcode Command Line Tools ๊ฒฝ๋ก๋ฅผ ์ค์ ํ ์ ์๋ค.
sudo xcode-select --switch /Library/Developer/CommandLineTools
์ ๋ช ๋ น์ `/Library/Developer/CommandLineTools` ๊ฒฝ๋ก์ Xcode Command Line Tools ๋ฅผ ์ค์ ํ๋ค๋ ๋ช ๋ น์ด์ด๋ค.
ํด๋น ๋ช ๋ น์ด๋ฅผ ์คํํ๊ณ ๋ค์ ์์ ์ ์๋ํ๋ค๋ฉด
`xcrun` ์ค๋ฅ ํด๊ฒฐ์ด ๊ฐ๋ฅํ ๊ฒ์ด๋ค.
#xcrun #Xcode #์ค๋ฅ #์ค๋ฅํด๊ฒฐ
#Xcode_command_line_tools #error
'macOS' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[์ฝ๋ฆฐ์ด TIL] / macOS(m1)์์ 'homebrew', 'nvm'์ค์นํ๊ธฐ, ์ค์น ์ค๋ฅ ํด๊ฒฐํ๊ธฐ. (0) | 2023.05.24 |
---|