2016-06-16 5 views
9

프레임 워크 빌드에 사용 된 카르타고 스위프트 버전을 변경할 수 있습니까?카르타고 스위프트 버전 변경

내 프로젝트를 신속하게 3 (Xcode 8 베타)으로 마이그레이션하려고하는데 타사 라이브러리가 내 프로젝트를 컴파일하는 것을 중지시키는 유일한 방법입니다. swift 3에 특정 분기를 사용하는 동안 Carthage는 새로운 Swift 구문에 대한 오류를 발생시킵니다.

도움이 될 것입니다!

답변

19

카르타고는 명령 행 도구 xcodebuild을 사용하여 프레임 워크를 빌드합니다. 명령 줄 시스템에 의해 사용 엑스 코드의 버전은 도구 그것은 개발자 SDK 디렉토리를 가리 키도록해야 xcode-select

Usage: xcode-select [options] 

Print or change the path to the active developer directory. This directory 
controls which tools are used for the Xcode command line tools (for example, 
xcodebuild) as well as the BSD development commands (such as cc and make). 

Options: 
    -h, --help     print this help message and exit 
    -p, --print-path   print the path of the active developer directory 
    -s <path>, --switch <path> set the path for the active developer directory 
    --install     open a dialog for installation of the command line developer tools 
    -v, --version    print the xcode-select version 
    -r, --reset     reset to the default command line tools path 

가 선택한 값에 의해 결정됩니다, 그래서 당신은 현재 가리키는 어디에 확인 --print-path를 사용할 수 있습니다.

xcode-select --print-path 
/Applications/Xcode.app/Contents/Developer 

그럼 그냥 sudo xcode-select --switch <path-to-beta-xcode>/Contents/Developer

+1

당신은이 엑스 코드> 환경 설정> 위치, 다음 "명령 줄을 사용하여 변경할 수 있습니다 당신은 자신의 repo에 그 문제의 스레드를 수행하는 것이 좋습니다 도구 " –