-
macOS 업데이트 이후 에러문제 해결 2024. 5. 22. 15:36
17년 mac pro인데 홈브루 사용하고 싶어서
High Sierra 10.13.6 -> Monterey 12.1 로 업뎃
터미널에서 깃 커맨드 입력시
xcrun: error: invalid active developer path
에러가 발생하였다.
$ xcode-select --install
명령어 입력으로 간단하게 명령어 라인 개발자 도구를 사용하면 된다고 하는데왜 어떻게 문제가 발생했고 이걸로 해결되는 건지는 찾기 어렵다...
다음 블로그에 따르면 : https://www.lainyzine.com/ko/article/how-to-install-command-line-tools-on-macos/
원래 필요한 도구라고? 하는데
나는 필요하지 않았었기 때문에 도대체 갑자기 왜...?
더블체크가 필요할 것 같아서 영문 검색을 진행해봄
https://forums.developer.apple.com/forums/thread/13781
What are command line tools OS X 1… | Apple Developer Forums
Hi again, The following is an excellent introduction by Topher Kessler. Linking on these forums automatically causes posts to spend days in moderation, so I've copied the explaination here for you: "Sometimes you might try to run a program on your Mac, and
forums.developer.apple.com
이하 발췌
This message happens because of the lack of Apple’s developer tools on your Mac. Apple’s development tools (ie, its XCode suite) are provided separately from OS X, and are made available for free in the App Store. They allow programmers to compile programs and debug them, convert files, and perform a number of tasks for handling the resources required for making applications and other tools.
Running the Terminal-based developer tool “make” on a system without the command line tools installed will prompt you to install them.
Even though these tools are generally used in the development process only, some programs may require one or two of them when running. Since they are not installed by default, when such programs are run, or if you try to run any of the command line tools manually, OS X will detect these attempts and then prompt you to install either XCode or the command line tools package.
While the latest command line tools for OS X will be downloaded if you choose the option to install them, you can also download the latest tools and install them manually from Apple’s developer Web site (requires a free Developer ID). With these available, if you are concerned about the genuineness of the message that pops up, you can download and install these tools and then try running your program again. If the message was genuine then it should no longer appear."
요약하자면, 맥 os에서는
일반적으로 개발 과정에서,
그리고 가끔은 일부 프로그램의 실행 시
애플 개발자 도구가 필요하다...는 설명
운영체제의 룰인가보다 하고 넘어가기로 했음
'문제 해결' 카테고리의 다른 글
MacOS 업데이트 이후 발열 문제 (1) 2024.05.24