Mac 업데이트 했을 때, Error
Mac 업데이트 했을 때 - Console output during zsh initialization detected && missing xrun error
[WARNING]: Console output during zsh initialization detected.
이번에 macOS Ventura를 설치했습니다.
version은 13.0 입니다.
업데이트 후 이상한 에러들이 생겨나기 시작했다..
업데이트 후 부팅이 되었고 부팅되자마자 이런 에러가 났다. ….이 정도는 알아서 잘 해결했다.
하지만…
mac을 22년 2월에 처음 접했던 사람으로 당황했다. (필자는 iterm을 사용 중이다.)
[WARNING]: Console output during zsh initialization detected.
When using Powerlevel10k with instant prompt, console output during zsh
initialization may indicate issues.
You can:
- Recommended: Change ~/.zshrc so that it does not perform console I/O
after the instant prompt preamble. See the link below for details.
* You will not see this error message again.
* Zsh will start quickly and prompt will update smoothly.
- Suppress this warning either by running p10k configure or by manually
defining the following parameter:
typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet
* You will not see this error message again.
* Zsh will start quickly but prompt will jump down after initialization.
- Disable instant prompt either by running p10k configure or by manually
defining the following parameter:
typeset -g POWERLEVEL9K_INSTANT_PROMPT=off
* You will not see this error message again.
* Zsh will start slowly.
- Do nothing.
* You will see this error message every time you start zsh.
* Zsh will start quickly but prompt will jump down after initialization.
For details, see:
https://github.com/romkatv/powerlevel10k/blob/master/README.md#instant-prompt
-- console output produced during zsh initialization follows --
위와 같은 에러가 뜨기 시작했다..
왜 뜨는 것일까? 읽어보고 고민했다.
위에 권고 사항 중에
POWERLEVEL9K_INSTANT_PROMPT=off
라는 것이 있었고 POWERLEVEL9K 라는 것에 문제가 있었던 것 같다.nvim ~/.p10k.zsh
을 들어가서/
로 아래 코드를 검색하여 고쳐 주었다.POWERLEVEL9K_INSTANT_PROMPT=verbose
→POWERLEVEL9K_INSTANT_PROMPT=off
POWERLEVEL9K_INSTANT_PROMPT=off
위의 코드와 똑같이 해보았다.
missing xcrun error
iterm을 끄고 다시 켜봤다.
이건 또 뭐지 ?….
오류: 유효하지 않은 활성 개발자 경로
라는 에러가 떴다.. 안 된다.
구박사님에게 여쭤보았다.
문제
missing xcrun
라는 에러 였다.
- 이 에러가 뜨는 이유
- CommandLineTools를 식별하지 못해 발생한 문제
해결책
xcode-select --install
위의 명령으로 CommandLineTools(command line developer tools)를 설치하여 문제를 해결 할 수 있다.
완료 되었다.
결과
깔끔히 완료 되었다.
git
도 완벽히 된다.
회고
여러 검색을 해보니깐 mac에서 나오는 고질병 같은 거라고 하는 것 같다.
보통 업데이트를 하게 될 때 높은 확률로 발생한다고 한다. 그래서 이 글을 남기는 이유이기도하다.
mac을 사용한지 8개월 정도 되었다.
에러의 에러를 만나니 당황스러웠지만 뭐 천천히 이상하게 하지 않길 기도하며.. 여러 서치를 통해서 완료하였다.