Xcode 멀티버전 설치

교육,학문,과학
0 투표

우선 필요한 버전의 Xcode를 찾아 다운로드 받습니다. 
https://developer.apple.com/download/more/?name=Xcode (로그인 필요)

원하는 버전을 클릭하고, 다운 로드 후, 압축을 풀면 Xcode.app가 생성된다.  파일 명을 버전에 따라 바꾸면 좋을 것이다 (Xcode_버젼.app). 그리고 응용 프로그램(Applications) 디렉토리 아래 Xcode 버전에 따라 나란히 배치해보자. 

간단히 여러 버전의 XCode를 설치하였다.  

이제 Command-line으로 Xcode를 실행할 때, 어떤 버전으로 실행할 지 세팅해보자. 

현재 어떤 Xcode 경로로 세팅되어 있는지 조회한다.

> xcode-select --print-path 
또는
> xcode-select -p
/Applications/Xcode.app/Contents/Developer

버전을 조회한다.

> xcodebuild -version
Xcode 10.2.1
Build version 10E100

현재 세팅되어 있는 Xcode 경로와 버전(10.2.1)을 알았다.

만약 다른 버전의 Xcode로 설정을 바꾸려면 다음과 같이 커맨드를 날려보면 된다.

> sudo xcode-select -s /Applications/Xcode11.app/Contents/Developer
Password:

root 권한과 비밀번호를 알아야 경로를 바꿀 수 있다.  성공했다면 경로가 바뀌었는지 확인해보자.

> xcode-select -p
/Applications/Xcode11.app/Contents/Developer

> xcodebuild -version
Xcode 11.0
Build version 11A420a

Xcode 11.0으로 성공적으로 바뀌었다.  

1 답변

0 투표

Looking at this article, I miss the time when I didn't wear a mask. *************** Hopefully this corona will end soon. My blog is a blog that mainly posts pictures of daily life before Corona and landscapes at that time.    If you want to remember that time again, please visit us.  

구로역 맛집 시흥동 맛집
add
...