ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • rvm install 2.1을 시도했는데 이 오류가 발생했습니다. xcode-select : error : invalid developer directory
    카테고리 없음 2020. 8. 16. 15:00

    질문

    rvm install 2.1을 시도했습니다.

    이 오류가 발생했습니다.

    xcode-select : 오류 : 잘못된 개발자 디렉토리 '/ Library / Developer / CommandLineTools'실패 : / usr / bin / sudo / usr / bin / xcode-select --switch / Library / Developer / CommandLineTools

    루비로 cucumber test를 시도하는 동안 이런 일이 발생했습니다.

    내 루비 버전은 2.0이고 rvm 버전은 1.29.3이므로 업그레이드 할 수 없습니다. Xcode가 설치되어 있습니다.

     

    답변1

    xcode-select --install 을 실행하여 최신 버전으로 업데이트하십시오.

    여전히 문제가있는 경우 xcode-select -p 로 xcode-select 경로를 확인하고 할당 할 올바른 경로를 찾으십시오.

    내 경우 내 경로는 다음과 같습니다./ Library / Developer / CommandLineTools

    경로를 변경하려면 다음을 실행하십시오. sudo xcode-select -switch / Library / Developer / CommandLineTools



    답변2

    다음 링크에서 xcode-command-line-tools를 설치합니다. https://developer.apple.com/download/더보기/

    참고 :이 방법을 사용하려면 Apple 개발자 계정이 필요합니다.

    또는

    다음 명령을 실행

    xcode-select --install 



     

     

     

     

    출처 : https://stackoverflow.com/questions/48562808/i-tried-rvm-install-2-1-and-i-got-this-error-xcode-select-error-invalid-develo

    댓글

Designed by Tistory.